Interface AntPlusFitnessEquipmentPcc.IGeneralSettingsReceiver

Enclosing class:
AntPlusFitnessEquipmentPcc

public static interface AntPlusFitnessEquipmentPcc.IGeneralSettingsReceiver
Receiver for the GeneralSettings event, which is: The general settings data. This data is optional and may not be sent by all fitness equipment.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewGeneralSettings(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal cycleLength, BigDecimal inclinePercentage, int resistanceLevel)
    Receives the data from a GeneralSettings event.
  • Method Details

    • onNewGeneralSettings

      void onNewGeneralSettings(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal cycleLength, BigDecimal inclinePercentage, int resistanceLevel)
      Receives the data from a GeneralSettings 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.
      cycleLength - The cycle length field provides information on the length of a single complete "cycle" on the FE. For a treadmill or elliptical machine, this would be the stride length. It could also be used to indicate step height on a climber, or stroke length on a rower (up to 0.01m resolution). Units: m.
      inclinePercentage - The incline percentage field provides the treadmill's percentage incline with 0.01% resolution and a valid range from -100.00% to +100.00%. Units: %.
      resistanceLevel - The resistance level setting of the FE or FE-C device. This is sent as a positive integer value between 1 and 254 as an FE device, or as a positive percentage with 0.5% units up to 100%.