Stride Based Speed And Distance Class
The stride based speed and distance monitor (SDM) class. The SDM is a personal body-worn device that allows the
wearer to measure the number of strides taken, the speed at which they are traveling and/or the
distance they have covered based on stride measurements and calculations.Some examples of
SDMs include the foot-worn pods that go on, or in, a shoe and reconstruct strides to compute speed
and distance while walking or running.Similarly, pedometers that may be worn on the waist or
elsewhere are also considered SDMs.
Definition
Namespace: SmallEarthTech.AntPlus.DeviceProfiles
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
C#
public class StrideBasedSpeedAndDistance : AntDeviceVB
Public Class StrideBasedSpeedAndDistance
Inherits AntDeviceC++
public ref class StrideBasedSpeedAndDistance : public AntDeviceF#
type StrideBasedSpeedAndDistance =
class
inherit AntDevice
end- Inheritance
- ObservableObject AntDevice StrideBasedSpeedAndDistance
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
| StrideBasedSpeedAndDistance(ChannelId, IAntChannel, ILoggerStrideBasedSpeedAndDistance, TimeoutOptions) | Initializes a new instance of the StrideBasedSpeedAndDistance class. |
| StrideBasedSpeedAndDistance(ChannelId, IAntChannel, ILoggerStrideBasedSpeedAndDistance, Int32) | Initializes a new instance of the StrideBasedSpeedAndDistance class. |
Properties
| AccumulatedCalories | Gets the accumulated calories in kcals. |
| AccumulatedDistance | Gets the accumulated distance in meters. |
| AccumulatedStrideCount | Gets the accumulated stride count. |
| AccumulatedTime | Gets the accumulated time duration since SDM sensor was turned on until it is turned off. |
| Capabilities | Gets the sensor broadcast capabilities. |
| ChannelCount | This 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) |
| ChannelId | Gets the channel identifier. (Inherited from AntDevice) |
| CommonDataPages | Gets the common data pages. |
| DeviceImageStream | Gets the device image stream from the embedded resource image associated with the derived device class. (Overrides AntDeviceDeviceImageStream) |
| DistanceSummary | Gets the accumulated distance since battery change. |
| InstantaneousCadence | Gets the cadence in strides per minute. |
| InstantaneousSpeed | Gets the instantaneous speed in meters per second. |
| Offline | Gets a value indicating whether this AntDevice is offline. (Inherited from AntDevice) |
| Status | Gets the status of the SDM sensor. |
| StrideCountSummary | Gets the accumulated strides since battery change. |
| UpdateLatency | Gets the update latency. The time elapsed between the last speed and distance computation and the transmission of this message. |
Methods
| Dispose |
Releases the resources used by the current instance of the class.
(Inherited from AntDevice) |
| Parse | Parses the specified data page. (Overrides AntDeviceParse(Byte)) |
| RequestBroadcastCapabilities | Requests the SDM broadcast capabilities page. |
| RequestDataPageT | Requests the data page. (Inherited from AntDevice) |
| RequestSummaryPage | Requests the total cumulative distance and stride count since the last battery change. |
| SendExtAcknowledgedMessage | Sends an acknowledged message to the ANT device. (Inherited from AntDevice) |
| ToString |
Returns a string representation of the current derived AntDevice.
(Inherited from AntDevice) |
Events
| DeviceWentOffline | Occurs when no messages have been received from the device within the specified timeout duration. (Inherited from AntDevice) |
Fields
| _logger | The logger for derived classes to use. (Inherited from AntDevice) |
| DeviceClass | The device type value transmitted in the channel ID. |