Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusFitnessEquipmentPcc.Settings
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusFitnessEquipmentPcc.Settings
- Enclosing class:
- AntPlusFitnessEquipmentPcc
Provides information about the user and previously paired sensors. This information
can be sent to the Fitness Equipment at the beginning of a session.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSettings
(String friendlyName, AntPlusFitnessEquipmentPcc.Settings.Gender gender, short age, float height, float weight) Creates a Settings object with the minimum required fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPairedHrmId
(int deviceNumber, short transType) Configures paired ANT+ HRM sensor.Creates a FIT settings file, based in the configured settings
-
Constructor Details
-
Settings
public Settings(String friendlyName, AntPlusFitnessEquipmentPcc.Settings.Gender gender, short age, float height, float weight) Creates a Settings object with the minimum required fields- Parameters:
friendlyName
- Name or nickname for this usergender
- UserAntPlusFitnessEquipmentPcc.Settings.Gender
.age
- User age. Units: yearsheight
- User height. Units: m. Resolution 0.01 mweight
- User weight. Units: kg Resolution 0.1 kg
-
-
Method Details
-
setPairedHrmId
public void setPairedHrmId(int deviceNumber, short transType) Configures paired ANT+ HRM sensor. If no ANT+ HRM sensor has been paired, there is no need to call this method.- Parameters:
deviceNumber
- ANT device ID of the paired HRM sensor. Valid values: 1 - 65534.transType
- ANT transmission type of the paired HRM sensor. 0 = no sensor paired
-
toFitFile
Creates a FIT settings file, based in the configured settings- Returns:
- FIT settings file
-