Treadmill Class

This class supports the treadmill fitness equipment type.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles.FitnessEquipment
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.2+00799c19dddffadca3dc463ea835768539806d36
C#
public class Treadmill : FitnessEquipment
Inheritance
ObservableObject    AntDevice    FitnessEquipment    Treadmill

Remarks

An important consideration is an appropriate timeout to determine if a device has gone offline - battery has died, device has been turned off, device is out of range of receiver, ane/or the RF environment the device and receiver are operating in. Most devices broadcast at 4Hz, with the notable exception of Geocache and Asset Tracker. A reasonable rule of thumb is to set the timeout at 8 messages times the channel period per second; typically 2 seconds. Consult the device profile documentation at https://www.thisisant.com for a device and consult the channel period defined for master devices.

Constructors

Treadmill(ChannelId, IAntChannel, ILoggerTreadmill, TimeoutOptions)Initializes a new instance of the Treadmill class.
Treadmill(ChannelId, IAntChannel, ILoggerTreadmill, Int32)Initializes a new instance of the Treadmill class.

Properties

CadenceGets the cadence in strides per minute.
CapabilitiesGets the treadmill specific capabilities.
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.
(Inherited from FitnessEquipment)
ChannelIdGets the channel identifier.
(Inherited from AntDevice)
CommonDataPagesGets the common data pages.
(Inherited from FitnessEquipment)
DeviceImageStreamGets the device image stream from the embedded resource image associated with the derived device class.
(Inherited from FitnessEquipment)
GeneralDataGets the general data.
(Inherited from FitnessEquipment)
GeneralMetabolicGets the general metabolic reports.
(Inherited from FitnessEquipment)
GeneralSettingsGets the general settings.
(Inherited from FitnessEquipment)
MaxTrainerResistanceGets the maximum trainer resistance.
(Inherited from FitnessEquipment)
NegVerticalDistanceGets the accumulated negative vertical distance traveled in meters. Note this is a negative value.
OfflineGets a value indicating whether this AntDevice is offline.
(Inherited from AntDevice)
PosVerticalDistanceGets the accumulated positive vertical distance traveled in meters.
StateGets the equipment state.
(Inherited from FitnessEquipment)
TrainingModesGets the supported training modes.
(Inherited from FitnessEquipment)

Methods

Dispose Releases the resources used by the current instance of the class.
(Inherited from AntDevice)
HandleFEStateHandles the state of the fitness equipment.
(Inherited from FitnessEquipment)
Parse Parses the specified data page.
(Overrides FitnessEquipmentParse(Byte))
RequestDataPageTRequests the data page.
(Inherited from AntDevice)
RequestFECapabilitiesRequests the fitness equipment capabilities.
(Inherited from FitnessEquipment)
SendExtAcknowledgedMessageSends an acknowledged message to the ANT device.
(Inherited from AntDevice)
SetBasicResistanceSets the percentage of maximum resistance resistance.
(Inherited from FitnessEquipment)
SetTargetPowerSets the target power in wats.
(Inherited from FitnessEquipment)
SetTrackResistanceSets the track resistance.
(Inherited from FitnessEquipment)
SetUserConfigurationSets the user configuration.
(Inherited from FitnessEquipment)
SetWindResistanceSets the wind resistance.
(Inherited from FitnessEquipment)
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)
LapToggledOccurs when a lap toggle is signaled by the device.
(Inherited from FitnessEquipment)

Fields

_loggerThe logger for derived classes to use.
(Inherited from AntDevice)
handledPage Flag indicating the data page was handled by Parse(Byte).
(Inherited from FitnessEquipment)

See Also