Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusFitnessEquipmentPcc.CommandStatus
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusFitnessEquipmentPcc.CommandStatus
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- AntPlusFitnessEquipmentPcc
public static class AntPlusFitnessEquipmentPcc.CommandStatus
extends Object
implements android.os.Parcelable
Confirms the status of commands sent from an open display to the fitness equipment.
To confirm that the control request was successful, the command status may be requested from the fitness equipment. It is a requirement that fitness equipment that supports the FE-C use case be able to send this.
- Since:
- 2.1.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The command ID sent to the fitness equipment.static enum
The command status of the last received command by the fitness equipment. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<AntPlusFitnessEquipmentPcc.CommandStatus>
CREATOR is used by Android parceling system.The drafting factor is used to set the resistance reduction due to travelling behind a virtual competitor.Grade of simulated track.static final String
Default IPC keyIndicates data page number of the last control page received.int
0 to 254: Sequence number used by Slave in last received command request.byte[]
Response data bytes specific to received command ID.The coefficient of rolling resistance is a dimensionless factor used to quantify rolling resistance based on the friction between the bicycle tires and the track surface.The command status of the last received command by the fitness equipment.The target power for fitness equipment operating in target power mode.Percentage of maximum resistance to be applied.Product of Frontal Surface Area, Drag Coefficient and Air Density.Speed of simulated wind acting on the cyclist.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a command status object.CommandStatus
(android.os.Parcel in) Parcel constructor -
Method Summary
-
Field Details
-
KEY_DEFAULT_COMMANDSTATUSKEY
Default IPC key- See Also:
-
lastReceivedCommandId
Indicates data page number of the last control page received. -
lastReceivedSequenceNumber
public int lastReceivedSequenceNumber0 to 254: Sequence number used by Slave in last received command request. -1 is used to indicate that no control page has yet been received. -
status
The command status of the last received command by the fitness equipment. -
rawResponseData
public byte[] rawResponseDataResponse data bytes specific to received command ID. The corresponding data fields are decoded in theAntPlusFitnessEquipmentPcc.CommandStatus
. -
totalResistance
Percentage of maximum resistance to be applied. Field is null if not present fromAntPlusFitnessEquipmentPcc.CommandStatus.CommandId.BASIC_RESISTANCE
.Units: %
Valid range: 0% - 100%
Resolution: 0.5% -
targetPower
The target power for fitness equipment operating in target power mode. Field is null if not present fromAntPlusFitnessEquipmentPcc.CommandStatus.CommandId.TARGET_POWER
.Units: W
Valid range: 0W - 1000W
Resolution: 0.25W -
windResistanceCoefficient
Product of Frontal Surface Area, Drag Coefficient and Air Density. Field is null if not present fromAntPlusFitnessEquipmentPcc.CommandStatus.CommandId.WIND_RESISTANCE
.Units: kg/m
Valid range: 0kg/m - 1.86kg/m
Resolution: 0.01kg/m -
windSpeed
Speed of simulated wind acting on the cyclist. (+) - Head Wind (-) - Tail Wind. Field is null if not present fromAntPlusFitnessEquipmentPcc.CommandStatus.CommandId.WIND_RESISTANCE
.Units: km/h
Valid range: -127km/h - 127km/h
Resolution: 1km/h -
draftingFactor
The drafting factor is used to set the resistance reduction due to travelling behind a virtual competitor. Field is null if not present fromAntPlusFitnessEquipmentPcc.CommandStatus.CommandId.WIND_RESISTANCE
. The drafting factor scales the total wind resistance depending on the position of the user relative to other virtual competitors. The drafting scale factor ranges from 0.0 to 1.0, where 0.0 removes all air resistance from the simulation, and 1.0 indicates no drafting effects (e.g. cycling alone, or in the lead of a pack).Units: none
Valid range: 0.00 - 1.00
Resolution: 0.01 -
grade
Grade of simulated track. Gravitational resistance is calculated using the grade of the simulated track and the combined mass of the user plus fitness equipment. Field is null if not present fromAntPlusFitnessEquipmentPcc.CommandStatus.CommandId.TRACK_RESISTANCE
.
Gravitational Resistance [N] = (Equipment Mass + User Mass) x Grade/100 x 9.81.Units: %
Valid range: -200.00% - 200.00%
Resolution: 0.01 -
rollingResistanceCoefficient
The coefficient of rolling resistance is a dimensionless factor used to quantify rolling resistance based on the friction between the bicycle tires and the track surface. Field is null if not present fromAntPlusFitnessEquipmentPcc.CommandStatus.CommandId.TRACK_RESISTANCE
.Units: none
Valid range: 0 - 0.0127
Resolution: 5x10^-5 -
CREATOR
CREATOR is used by Android parceling system.
-
-
Constructor Details
-
CommandStatus
public CommandStatus()Creates a command status object. User code should not have to reference this constructor. -
CommandStatus
public CommandStatus(android.os.Parcel in) Parcel constructor- Parameters:
in
- Parcel with object data
-
-
Method Details
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-