Interface AntPlusBikeCadencePcc.IRawCadenceDataReceiver

Enclosing class:
AntPlusBikeCadencePcc

public static interface AntPlusBikeCadencePcc.IRawCadenceDataReceiver
Receiver for the RawCadenceData event, which is: The raw event timestamp and revolution count accumulation.
  • Method Summary

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

    • onNewRawCadenceData

      void onNewRawCadenceData(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal timestampOfLastEvent, long cumulativeRevolutions)
      Receives the data from a RawCadenceData 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 event (up to 1/1024s accuracy). Units: s. Rollover: Every ~46 quadrillion s (~1.5 billion years).
      cumulativeRevolutions - Total number of revolutions since the sensor was 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.