Interface AntPlusFitnessEquipmentPcc.ICalculatedTrainerPowerReceiver

Enclosing class:
AntPlusFitnessEquipmentPcc

public static interface AntPlusFitnessEquipmentPcc.ICalculatedTrainerPowerReceiver
Receiver for the CalculatedTrainerPower event, which is: The average power between two received messages calculated from the best available data from the trainer. Recommended method.
Since:
2.1.8
  • Method Details

    • onNewCalculatedTrainerPower

      void onNewCalculatedTrainerPower(long estTimestamp, EnumSet<EventFlag> eventFlags, AntPlusFitnessEquipmentPcc.TrainerDataSource dataSource, BigDecimal calculatedPower)
      Receives the data from a CalculatedTrainerPower 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.
      dataSource - The AntPlusFitnessEquipmentPcc.TrainerDataSource indicating which type of data was used for calculation or if this is a new starting average value. A new starting value could be indicated when starting the plugin, or if reception is lost for too long to guarantee accurate data. If using a new starting value to record data, please use this event as a new starting point in time.
      calculatedPower - The average power calculated from sensor data. Units: W.