UtilsCalculateDelta(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: 5.1.2+f020e0f7d6c6baea4fbd8d2cd07f19d43a2df455
C#
public static int CalculateDelta(
	byte currentValue,
	ref byte lastValue
)

Parameters

currentValue  Byte
The current value.
lastValue  Byte
The last value.

Return Value

Int32
Positive delta of the current and previous values.

See Also