Interface AntPlusFitnessEquipmentPcc.IWindResistanceReceiver

Enclosing class:
AntPlusFitnessEquipmentPcc

public static interface AntPlusFitnessEquipmentPcc.IWindResistanceReceiver
Receiver for the WindResistance event, which is: The wind resistance mode settings data. This data is optional and may not be supported by all devices. Use the AntPlusFitnessEquipmentPcc.requestCapabilities(IRequestFinishedReceiver, ICapabilitiesReceiver) method first to find if it is supported.
Since:
2.1.8
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewWindResistance(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal windResistanceCoefficient, int windSpeed, BigDecimal draftingFactor)
    Receives the data from a WindResistance event.
  • Method Details

    • onNewWindResistance

      void onNewWindResistance(long estTimestamp, EnumSet<EventFlag> eventFlags, BigDecimal windResistanceCoefficient, int windSpeed, BigDecimal draftingFactor)
      Receives the data from a WindResistance 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.
      windResistanceCoefficient - Product of Frontal Surface Area, Drag Coefficient and Air Density.
      Units: kg/m. Valid range: 0kg/m - 1.86kg/m. Resolution: 0.01kg/m
      windSpeed - Speed of simulated wind acting on the cyclist. (+) - Head Wind (-) - Tail Wind.
      Units: km/h. Valid range: -127km/h - 127km/h. Resolution: 1km/h
      draftingFactor - The drafting factor is used to set the resistance reduction due to travelling behind a virtual competitor. The drafting factor scales the total wind resistance depending on the position of the user relative to other virtual competitors. The drafting scale factor ranges from 0.0 to 1.0, where 0.0 removes all air resistance from the simulation, and 1.0 indicates no drafting effects (e.g. cycling alone, or in the lead of a pack).
      Units: none. Valid range: 0.00 - 1.00. Resolution: 0.01