BikeSpeedSensor Class

This class supports bike speed sensors.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles.BikeSpeedAndCadence
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.2+5af4910afb6836f6fbc09954ad2a5f59fb040191
C#
public class BikeSpeedSensor : CommonSpeedCadence
Inheritance
ObservableObject    AntDevice    CommonSpeedCadence    BikeSpeedSensor

Remarks

Set the wheel circumference if the default value is incorrect. The calculations rely on the wheel circumference.

Constructors

BikeSpeedSensor(ChannelId, IAntChannel, ILoggerBikeSpeedSensor, TimeoutOptions) Initializes a new instance of the BikeSpeedSensor class.
BikeSpeedSensor(ChannelId, IAntChannel, ILoggerBikeSpeedSensor, Int32) Initializes a new instance of the BikeSpeedSensor class.

Properties

AccumulatedDistanceGets the accumulated distance in meters. This value is accumulated since distance was first reported.
BatteryStatusGets the battery status.
(Inherited from CommonSpeedCadence)
ChannelCountThis is a multiple of the base transmission frequency. All derived classes must implement this property. See the master Channel Period specified in the specific ANT device specification for the count value.
(Overrides AntDeviceChannelCount)
ChannelIdGets the channel identifier.
(Inherited from AntDevice)
CumulativeOperatingTimeGets the cumulative operating time.
(Inherited from CommonSpeedCadence)
DeviceImageStreamGets the device image stream from the embedded resource image associated with the derived device class.
(Overrides AntDeviceDeviceImageStream)
InstantaneousSpeedGets the instantaneous speed in meters per second.
ManufacturerInfoGets the manufacturer information.
(Inherited from CommonSpeedCadence)
OfflineGets a value indicating whether this AntDevice is offline.
(Inherited from AntDevice)
ProductInfoGets the product information.
(Inherited from CommonSpeedCadence)
StoppedGets a value indicating whether this sensor has detected stopped condition.
(Inherited from CommonSpeedCadence)
WheelCircumference The wheel circumference in meters. The default is 2.2 meters.

Methods

Dispose Releases the resources used by the current instance of the class.
(Inherited from AntDevice)
ParseParses the specified data page.
(Overrides CommonSpeedCadenceParse(Byte))
RequestDataPageTRequests the data page.
(Inherited from AntDevice)
SendExtAcknowledgedMessageSends an acknowledged message to the ANT device.
(Inherited from AntDevice)
ToString Returns a string representation of the current derived AntDevice.
(Overrides AntDeviceToString)

Events

DeviceWentOfflineOccurs when no messages have been received from the device within the specified timeout duration.
(Inherited from AntDevice)

Fields

_loggerThe logger for derived classes to use.
(Inherited from AntDevice)
DeviceClass The device type value transmitted in the channel ID.
isFirstDataMessageThe is first data message received.
(Inherited from CommonSpeedCadence)
prevEventTimeThe previous event time
(Inherited from CommonSpeedCadence)
prevRevCountThe previous revolution count
(Inherited from CommonSpeedCadence)

See Also