public abstract static class AntPlusBikeSpeedDistancePcc.CalculatedSpeedReceiver
extends java.lang.Object
Constructor and Description |
---|
AntPlusBikeSpeedDistancePcc.CalculatedSpeedReceiver(java.math.BigDecimal wheelCircumference)
Constructor to set the wheel circumference used to calculate the speed
|
Modifier and Type | Method and Description |
---|---|
abstract void |
onNewCalculatedSpeed(long estTimestamp,
java.util.EnumSet<EventFlag> eventFlags,
java.math.BigDecimal calculatedSpeed)
Receives the data from a CalculatedSpeed event.
|
public AntPlusBikeSpeedDistancePcc.CalculatedSpeedReceiver(java.math.BigDecimal wheelCircumference)
wheelCircumference
- The wheel circumference in meters, used to calculate the speedpublic abstract void onNewCalculatedSpeed(long estTimestamp, java.util.EnumSet<EventFlag> eventFlags, java.math.BigDecimal calculatedSpeed)
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.calculatedSpeed
- The speed calculated from the raw values in the sensor broadcast, based on this classes' set wheel circumference passed to the constructor. Units: m/s.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.