UtilsCalculate Delta(Byte, Byte) Method
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.
Definition
Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.2+fe94d33487affd796e1d786d5b5eb3d769a3361f
Positive delta of the current and previous values.
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.2+fe94d33487affd796e1d786d5b5eb3d769a3361f
C#
public static int CalculateDelta(
byte currentValue,
ref byte lastValue
)VB
Public Shared Function CalculateDelta (
currentValue As Byte,
ByRef lastValue As Byte
) As IntegerC++
public:
static int CalculateDelta(
unsigned char currentValue,
unsigned char% lastValue
)F#
static member CalculateDelta :
currentValue : byte *
lastValue : byte byref -> int Parameters
Return Value
Int32Positive delta of the current and previous values.