ant-plus-next / SpeedCadenceSensorState
Represents the state of a Speed and Cadence sensor. This class holds the data fields associated with the state of a Speed and Cadence sensor, including cadence, speed, distance, and event times.
new SpeedCadenceSensorState(
deviceId
):SpeedCadenceSensorState
Creates an instance of the SpeedCadenceSensorState.
number
The unique identifier of the sensor device.
const sensorState = new SpeedCadenceSensorState(12345);
sensors/speedCadence/speedCadenceSensorState.ts:14
CadenceEventTime:
undefined
|number
The time of the last cadence event in seconds, measured as a fractional part.
sensors/speedCadence/speedCadenceSensorState.ts:28
CalculatedCadence:
undefined
|number
The calculated cadence in revolutions per minute (RPM).
sensors/speedCadence/speedCadenceSensorState.ts:52
CalculatedDistance:
undefined
|number
The calculated distance traveled in meters.
sensors/speedCadence/speedCadenceSensorState.ts:58
CalculatedSpeed:
undefined
|number
The calculated speed in meters per second (m/s).
sensors/speedCadence/speedCadenceSensorState.ts:64
CumulativeCadenceRevolutionCount:
undefined
|number
The cumulative count of cadence revolutions since the sensor started.
sensors/speedCadence/speedCadenceSensorState.ts:34
CumulativeSpeedRevolutionCount:
undefined
|number
The cumulative count of speed revolutions since the sensor started.
sensors/speedCadence/speedCadenceSensorState.ts:46
DeviceId:
number
The unique identifier of the sensor device.
sensors/speedCadence/speedCadenceSensorState.ts:22
SpeedEventTime:
undefined
|number
The time of the last speed event in seconds, measured as a fractional part.