ant-plus-next / SpeedCadenceScanState
Represents the state of a Speed and Cadence sensor during scanning. Extends the SpeedCadenceSensorState to include additional fields specific to scanning, such as RSSI (Received Signal Strength Indicator) and signal threshold.
new SpeedCadenceScanState(
deviceId
):SpeedCadenceScanState
Creates an instance of the SpeedCadenceSensorState.
number
The unique identifier of the sensor device.
const sensorState = new SpeedCadenceSensorState(12345);
SpeedCadenceSensorState
.constructor
sensors/speedCadence/speedCadenceSensorState.ts:14
CadenceEventTime:
undefined
|number
The time of the last cadence event in seconds, measured as a fractional part.
SpeedCadenceSensorState
.CadenceEventTime
sensors/speedCadence/speedCadenceSensorState.ts:28
CalculatedCadence:
undefined
|number
The calculated cadence in revolutions per minute (RPM).
SpeedCadenceSensorState
.CalculatedCadence
sensors/speedCadence/speedCadenceSensorState.ts:52
CalculatedDistance:
undefined
|number
The calculated distance traveled in meters.
SpeedCadenceSensorState
.CalculatedDistance
sensors/speedCadence/speedCadenceSensorState.ts:58
CalculatedSpeed:
undefined
|number
The calculated speed in meters per second (m/s).
SpeedCadenceSensorState
.CalculatedSpeed
sensors/speedCadence/speedCadenceSensorState.ts:64
CumulativeCadenceRevolutionCount:
undefined
|number
The cumulative count of cadence revolutions since the sensor started.
SpeedCadenceSensorState
.CumulativeCadenceRevolutionCount
sensors/speedCadence/speedCadenceSensorState.ts:34
CumulativeSpeedRevolutionCount:
undefined
|number
The cumulative count of speed revolutions since the sensor started.
SpeedCadenceSensorState
.CumulativeSpeedRevolutionCount
sensors/speedCadence/speedCadenceSensorState.ts:46
DeviceId:
number
The unique identifier of the sensor device.
SpeedCadenceSensorState
.DeviceId
sensors/speedCadence/speedCadenceSensorState.ts:22
Rssi:
undefined
|number
The received signal strength indicator (RSSI) of the sensor signal.
sensors/speedCadence/speedCadenceScanState.ts:13
SpeedEventTime:
undefined
|number
The time of the last speed event in seconds, measured as a fractional part.
SpeedCadenceSensorState
.SpeedEventTime
sensors/speedCadence/speedCadenceSensorState.ts:40
Threshold:
undefined
|number
The signal threshold value.