Interface AntPlusBikePowerPcc.IRawWheelTorqueDataReceiver

Enclosing class:
AntPlusBikePowerPcc

public static interface AntPlusBikePowerPcc.IRawWheelTorqueDataReceiver
Receiver for the RawWheelTorqueData event, which is: Event timing information and torque values from a power sensor that measures torque on the rear wheel. Timing is based on a 2048Hz clock and torque is transmitted in Newton meters. This data is optional and may not be sent by all sensors. Power sensors do not support wheel torque and crank torque simultaneously.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewRawWheelTorqueData(long estTimestamp, EnumSet<EventFlag> eventFlags, long wheelTorqueUpdateEventCount, long accumulatedWheelTicks, BigDecimal accumulatedWheelPeriod, BigDecimal accumulatedWheelTorque)
    Receives the data from a RawWheelTorqueData event.
  • Method Details

    • onNewRawWheelTorqueData

      void onNewRawWheelTorqueData(long estTimestamp, EnumSet<EventFlag> eventFlags, long wheelTorqueUpdateEventCount, long accumulatedWheelTicks, BigDecimal accumulatedWheelPeriod, BigDecimal accumulatedWheelTorque)
      Receives the data from a RawWheelTorqueData 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.
      wheelTorqueUpdateEventCount - This field is incremented each time the sensor updates wheel torque 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.
      accumulatedWheelTicks - The wheel ticks field increments with each wheel revolution and is used to calculate linear distance traveled (up to 1 rotation resolution). For event-synchronous systems, the wheel ticks and update event count increment at the same rate. 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: rotations. Rollover: Every ~9 quintillion rotations.
      accumulatedWheelPeriod - The average rotation period of the wheel during the last update interval, in increments of 1/2048s. Each Wheel Period tick represents a 488-microsecond interval. In event-synchronous systems, the accumulated wheel period time stamp field rolls over in 32 seconds. In fixed time interval update systems, the time to rollover depends on wheel speed but is greater than 32 seconds. 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: s. Rollover: Every ~4 quadrillion s.
      accumulatedWheelTorque - The cumulative sum of the average torque measured every update event count (up to 1/32 Nm resolution). Do NOT use wheel ticks to calculate linear speed. 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: Nm. Rollover: Every ~280 quadrillion Nm.