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: 6.1.0+bee07ae1f518f90000e3a8eef95ac61052778db9
Positive delta of the current and previous values.
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.1.0+bee07ae1f518f90000e3a8eef95ac61052778db9
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.