Interface AntPlusBikeSpeedDistancePcc.IRawSpeedAndDistanceDataReceiver

Enclosing class:
AntPlusBikeSpeedDistancePcc

public static interface AntPlusBikeSpeedDistancePcc.IRawSpeedAndDistanceDataReceiver
Receiver for the RawSpeedAndDistanceData event, which is: The raw event timestamp and revolution count accumulation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewRawSpeedAndDistanceData(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal timestampOfLastEvent, long cumulativeRevolutions)
    Receives the data from a RawSpeedAndDistanceData event.
  • Method Details

    • onNewRawSpeedAndDistanceData

      void onNewRawSpeedAndDistanceData(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal timestampOfLastEvent, long cumulativeRevolutions)
      Receives the data from a RawSpeedAndDistanceData 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.
      timestampOfLastEvent - Sensor reported time counter value of last distance or speed computation (up to 1/200s accuracy). Units: s. Rollover: Every ~46 quadrillion s (~1.5 billion years).
      cumulativeRevolutions - Total number of revolutions since the sensor was first connected. 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: revolutions. Rollover: Every ~9 quintillion revolutions.