Interface AntPlusBikePowerPcc.IRawCrankTorqueDataReceiver

Enclosing class:
AntPlusBikePowerPcc

public static interface AntPlusBikePowerPcc.IRawCrankTorqueDataReceiver
Receiver for the RawCrankTorqueData event, which is: Event timing information and torque values from a power sensor that measures torque at the crank. 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
    onNewRawCrankTorqueData(long estTimestamp, EnumSet<EventFlag> eventFlags, long crankTorqueUpdateEventCount, long accumulatedCrankTicks, BigDecimal accumulatedCrankPeriod, BigDecimal accumulatedCrankTorque)
    Receives the data from a RawCrankTorqueData event.
  • Method Details

    • onNewRawCrankTorqueData

      void onNewRawCrankTorqueData(long estTimestamp, EnumSet<EventFlag> eventFlags, long crankTorqueUpdateEventCount, long accumulatedCrankTicks, BigDecimal accumulatedCrankPeriod, BigDecimal accumulatedCrankTorque)
      Receives the data from a RawCrankTorqueData 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.
      crankTorqueUpdateEventCount - This field is incremented each time the sensor updates crank 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.
      accumulatedCrankTicks - The crank ticks increment with each crank revolution and indicates a full rotation of the crank. For systems that update synchronously with crank events (event-synchronous), the crank 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.
      accumulatedCrankPeriod - Used to indicate the average rotation period of the crank during the last update interval, in increments of 1/2048s. Each crank period tick represents a 488-microsecond interval. In event-synchronous systems, the accumulated crank period field rolls over in 32 seconds. In fixed update (time-synchronous) systems the time to rollover depends on wheel speed, but is greater than 32 seconds. Units: s. Rollover: Every ~4 quadrillion s.
      accumulatedCrankTorque - The cumulative sum of the average torque measured every crank rotation event (up to 1/32 Nm resolution). 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.