Package com.dsi.ant.plugins.antplus.pcc
Interface AntPlusStrideSdmPcc.IDistanceReceiver
- Enclosing class:
- AntPlusStrideSdmPcc
public static interface AntPlusStrideSdmPcc.IDistanceReceiver
Receiver for the Distance event, which is:
The total distance travelled since the plugin connected to this device. This data is optional and may not be sent by all sensors.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onNewDistance
(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal cumulativeDistance) Receives the data from a Distance event.
-
Method Details
-
onNewDistance
Receives the data from a Distance 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.cumulativeDistance
- Total distance since the plugin connected to this device (up to 1/16m accuracy). Note: If the subscriber is not the first PCC connected to the device the accumulation will probably already be at a value greater than 0 and the subscriber should save the first received value as a relative zero for itself. Units: m. Rollover: Every ~576 quadrillion m.
-