Utils Class
A static class with useful methods for calculations.
Definition
Namespace: SmallEarthTech.AntPlus
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 static class UtilsVB
Public NotInheritable Class UtilsC++
public ref class Utils abstract sealedF#
[<AbstractClassAttribute>]
[<SealedAttribute>]
type Utils = class end- 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. |
| ComputeAvgAngularVelocity | Computes the average angular velocity. |
| ComputeAvgSpeed | Computes the average speed. |
| ComputeAvgTorque | Computes the average torque over the event count interval. |
| ComputeDeltaDistance | Computes the change in distance. |
| DegreesToSemicircles | Convert decimal degrees to semicircles. |
| RotateLeft | Rotates a 16 bit number to the left. |
| RotateRight | Rotates a 16 bit number to the right. |
| SemicirclesToDegrees | Convert semicircles to decimal degrees. |