public abstract static class AntPlusBikeSpeedDistancePcc.CalculatedAccumulatedDistanceReceiver
extends java.lang.Object
| Constructor and Description |
|---|
AntPlusBikeSpeedDistancePcc.CalculatedAccumulatedDistanceReceiver(java.math.BigDecimal wheelCircumference)
Constructor to set the wheel circumference used to calculate the distance
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onNewCalculatedAccumulatedDistance(long estTimestamp,
java.util.EnumSet<EventFlag> eventFlags,
java.math.BigDecimal calculatedAccumulatedDistance)
Receives the data from a CalculatedAccumulatedDistance event.
|
public AntPlusBikeSpeedDistancePcc.CalculatedAccumulatedDistanceReceiver(java.math.BigDecimal wheelCircumference)
wheelCircumference - The wheel circumference in meters, used to calculate the distancepublic abstract void onNewCalculatedAccumulatedDistance(long estTimestamp,
java.util.EnumSet<EventFlag> eventFlags,
java.math.BigDecimal calculatedAccumulatedDistance)
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.calculatedAccumulatedDistance - The accumulated distance calculated from the raw values in the sensor broadcast since the sensor was first connected, based on this classes' set wheel circumference passed to the constructor.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.