public abstract static class AntPlusFitnessEquipmentPcc.CalculatedTrainerDistanceReceiver
extends java.lang.Object
| Constructor and Description |
|---|
AntPlusFitnessEquipmentPcc.CalculatedTrainerDistanceReceiver(java.math.BigDecimal wheelCircumference)
Constructor to set the wheel circumference used to calculate the speed
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onNewCalculatedTrainerDistance(long estTimestamp,
java.util.EnumSet<EventFlag> eventFlags,
AntPlusFitnessEquipmentPcc.TrainerDataSource dataSource,
java.math.BigDecimal calculatedDistance)
Receives the data from a CalculatedTrainerDistance event.
|
public AntPlusFitnessEquipmentPcc.CalculatedTrainerDistanceReceiver(java.math.BigDecimal wheelCircumference)
wheelCircumference - The wheel circumference in meters, used to calculate the speedpublic abstract void onNewCalculatedTrainerDistance(long estTimestamp,
java.util.EnumSet<EventFlag> eventFlags,
AntPlusFitnessEquipmentPcc.TrainerDataSource dataSource,
java.math.BigDecimal calculatedDistance)
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.dataSource - The AntPlusFitnessEquipmentPcc.TrainerDataSource indicating which type of data was used for calculation or if this is a new starting average value. A new starting value could be indicated when starting the plugin, or if reception is lost for too long to guarantee accurate data. If using a new starting value to record data, please use this event as a new starting point in time.calculatedDistance - The accumulated distance calculated from sensor data. Units: m.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.