Interface AntPlusFitnessEquipmentPcc.IRawTrainerDataReceiver

Enclosing class:
AntPlusFitnessEquipmentPcc

public static interface AntPlusFitnessEquipmentPcc.IRawTrainerDataReceiver
Receiver for the RawTrainerData event, which is: The basic power and cadence data calculated by the trainer itself.
Since:
2.1.8
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewRawTrainerData(long estTimestamp, EnumSet<EventFlag> eventFlags, long updateEventCount, int instantaneousCadence, int instantaneousPower, long accumulatedPower)
    Receives the data from a RawTrainerData event.
  • Method Details

    • onNewRawTrainerData

      void onNewRawTrainerData(long estTimestamp, EnumSet<EventFlag> eventFlags, long updateEventCount, int instantaneousCadence, int instantaneousPower, long accumulatedPower)
      Receives the data from a RawTrainerData 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.
      updateEventCount - This field is incremented each time the sensor updates trainer data. Can be used to help calculate power between RF outages and to determine if the data from the sensor is new. 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. Rollover: Every ~9 quintillion N/A.
      instantaneousCadence - Instantaneous cadence valid for display, computed by sensor (up to 1RPM resolution). '-1' = Invalid data. Units: RPM.
      instantaneousPower - Instantaneous power computed by the sensor valid for display (up to 1W resolution). Units: W.
      accumulatedPower - Accumulated power is the running sum of the instantaneous power data and is incremented at each update of the update event count (up to 1W resolution). Can be used to help calculate power between RF outages. 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: W. Rollover: Every ~9 quintillion W.