Package com.dsi.ant.plugins.antplus.pcc
Interface AntPlusFitnessEquipmentPcc.ITrackResistanceReceiver
- Enclosing class:
- AntPlusFitnessEquipmentPcc
public static interface AntPlusFitnessEquipmentPcc.ITrackResistanceReceiver
Receiver for the TrackResistance event, which is:
The track resistance mode settings data. This data is optional and may not be supported by all devices.
Use the
AntPlusFitnessEquipmentPcc.requestCapabilities(IRequestFinishedReceiver, ICapabilitiesReceiver)
method first to find if it is supported.- Since:
- 2.1.8
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onNewTrackResistance
(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal grade, BigDecimal rollingResistanceCoefficient) Receives the data from a TrackResistance event.
-
Method Details
-
onNewTrackResistance
void onNewTrackResistance(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal grade, BigDecimal rollingResistanceCoefficient) Receives the data from a TrackResistance event.- Parameters:
estTimestamp
- The estimated timestamp of when this event was triggered. Useful for correlating multiple events and determining when data was sent for more accurate data records.eventFlags
- Informational flags about the event.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.
Units: %. Valid range: -200.00% - 200.00%. Resolution: 0.01rollingResistanceCoefficient
- 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.
Units: none. Valid range: 0 - 0.0127. Resolution: 5x10^-5
-