Interface AntPlusFitnessEquipmentPcc.ITreadmillDataReceiver

Enclosing class:
AntPlusFitnessEquipmentPcc

public static interface AntPlusFitnessEquipmentPcc.ITreadmillDataReceiver
Receiver for the TreadmillData event, which is: The data specific to treadmills. This data is optional and may not be sent by all fitness equipment.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewTreadmillData(long estTimestamp, EnumSet<EventFlag> eventFlags, int instantaneousCadence, BigDecimal cumulativeNegVertDistance, BigDecimal cumulativePosVertDistance)
    Receives the data from a TreadmillData event.
  • Method Details

    • onNewTreadmillData

      void onNewTreadmillData(long estTimestamp, EnumSet<EventFlag> eventFlags, int instantaneousCadence, BigDecimal cumulativeNegVertDistance, BigDecimal cumulativePosVertDistance)
      Receives the data from a TreadmillData 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.
      instantaneousCadence - Instantaneous cadence valid for display. Units: strides/min.
      cumulativeNegVertDistance - Total vertical distance traveled down, or the total distance descended from the time the plugin connected to the fitness equipment (up to 0.1m resolution). Units: m. Rollover: Every ~900 quadrillion m.
      cumulativePosVertDistance - Total vertical distance traveled up, or the total distance ascended from the time the plugin connected to the fitness equipment (up to 0.1m resolution). Units: m. Rollover: Every ~900 quadrillion m.