StandardPowerSensor Class

The standard power sensor class. Note that torque sensors report this data page for displays that may not handle torque sensor messages.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles.BicyclePower
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+01fc5ca24e8f030354f28ec9cef320bc5cbb0ef6
C#
public class StandardPowerSensor : BicyclePower
Inheritance
Object    ObservableObject    AntDevice    BicyclePower    StandardPowerSensor

Remarks

Bicycle Power sensors fall into two main categories - StandardPowerSensor and CrankTorqueFrequencySensor.

Standard power sensors may support TorqueSensor in addition to the power only profile. The property TorqueSensor is set when a StandardCrankTorqueSensor or StandardWheelTorqueSensor message is received.

The CrankTorqueFrequencySensor class is somewhat unique among bicycle power sensors. It provides limited commonality and functionality compared to StandardPowerSensors.

Constructors

StandardPowerSensor(ChannelId, IAntChannel, ILoggerStandardPowerSensor, TimeoutOptions) Initializes a new instance of the StandardPowerSensor class.
StandardPowerSensor(ChannelId, IAntChannel, ILoggerStandardPowerSensor, Int32) Initializes a new instance of the StandardPowerSensor class.

Properties

AdvancedCapabilities1Gets the advanced capabilities from the advanced setting subpage.
AdvancedCapabilities2Gets the advanced capabilities from the advanced setting subpage.
AutoZeroStatusGets the automatic zero status.
AutoZeroSupportedGets a value indicating whether automatic zero is supported.
AveragePowerGets the average power in watts.
CalibrationDataGets the manufacturer specific calibration data.
CalibrationStatusThe calibration operation status common to all bicycle power sensors.
(Inherited from BicyclePower)
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 BicyclePower)
ChannelIdGets the channel identifier.
(Inherited from AntDevice)
CombinedPedalSmoothnessSet to true if left and right pedal smoothness is combined.
CommonDataPagesGets the common data pages.
CrankGets the crank parameters.
CustomCalibrationParametersGets the custom calibration parameters.
DeviceImageStreamGets the device image stream from the embedded resource image associated with the derived device class.
(Overrides AntDeviceDeviceImageStream)
InstantaneousCadenceGets the instantaneous pedaling cadence. 0xFF indicates invalid.
InstantaneousPowerGets the instantaneous power in watts.
LeftPedalSmoothnessGets the left pedal smoothness as a percentage. NaN indicates invalid.
LeftTorqueEffectivenessGets the left leg torque effectiveness as a percentage. NaN indicates invalid.
MeasurementsGets the reported measurements collection. There may be one or more measurement data types reported.
OfflineGets a value indicating whether this AntDevice is offline.
(Inherited from AntDevice)
PeakTorqueThresholdGets the peak torque threshold percentage.
PedalContributionGets the pedal power contribution.
PedalPowerThe pedal power data field provides the user’s power contribution (as a percentage) between the left and right pedals, as measured by a pedal power sensor.
RiderPositionTimeOffsetGets the rider position time offset.
RightPedalSmoothnessGets the right pedal smoothness as a percentage. NaN indicates invalid. Check CombinedPedalSmoothness.
RightTorqueEffectivenessGets the right leg torque effectiveness as a percentage. NaN indicates invalid.
TorqueSensorGets the torque sensor.

Methods

DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from AntDevice)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetParametersGets the requested parameters subpage.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ParseParses the specified data page.
(Overrides AntDeviceParse(Byte))
RequestCustomParametersRequests the manufacturer specific custom calibration parameters.
RequestDataPageTRequests the data page.
(Inherited from AntDevice)
RequestManualCalibrationRequests manual calibration.
(Inherited from BicyclePower)
SendExtAcknowledgedMessageSends an acknowledged message to the ANT device.
(Inherited from AntDevice)
SetAutoZeroConfigurationSets the sensor automatic zero configuration.
SetCrankLength Sets the length of the crank or enables auto crank length. If the crank length is greater than 236.5 mm, auto crank length is enabled. Typically you would omit the length parameter to enable auto crank length.
SetCustomParametersSets the custom calibration parameters. This is manufacturer specified limited to a maximum of 6 bytes.
SetPeakTorqueThreshold Sets the peak torque threshold percentage.
SetTransitionTimeOffset Sets the rider position transition time offset.
ToStringReturns a string that represents the current object.
(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)
CollectionLock The collection lock.

See Also