Utils Class

A static class with useful methods for calculations.

Definition

Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+01fc5ca24e8f030354f28ec9cef320bc5cbb0ef6
C#
public static class Utils
Inheritance
Object    Utils

Methods

CalculateDelta(Byte, Byte) Calculates the delta of the current and previous values. Rollover is accounted for and a positive integer is always returned. Add the returned value to the accumulated value in the derived class. The last value is updated with the current value.
CalculateDelta(UInt16, UInt16) Calculates the delta of the current and previous values. Rollover is accounted for and a positive integer is always returned. Add the returned value to the accumulated value in the derived class. The last value is updated with the current value.
ComputeAvgAngularVelocityComputes the average angular velocity.
ComputeAvgSpeedComputes the average speed.
ComputeAvgTorqueComputes the average torque over the event count interval.
ComputeDeltaDistanceComputes the change in distance.
DegreesToSemicirclesConvert decimal degrees to semicircles.
RotateLeftRotates a 16 bit number to the left.
RotateRightRotates a 16 bit number to the right.
SemicirclesToDegreesConvert semicircles to decimal degrees.

See Also