Skip to main content
RACELOGIC Support Centre

VBOX Video HD2 Maths Channels Functions

Maths channels can be utilised by the VBOX Video HD2 to display information from a combination of existing parameters. An example may be hill gradient which can be calculated from the horizontal speed and the vertical speed.

Maths channels can be configured using the VBOX Video HD2 Setup Software for Windows.

Supported functions are shown below. Constants of G and PI are also supported.
 

Function Definition Function Definition
+ Add - Subtract
* Multiply / Divide
% Remainder << Bitwise left shift, the most-significant bit is lost, and a 0 bit is inserted on the other end, multiplies a binary number by 2
>> Bitwise right shift, the least-significant bit is lost, and a 0 bit is inserted on the other end, divides positive numbers by 2 & Bitwise AND, whenever the value of a bit in both the variables is 1, then the result will be 1 or else 0
| Bitwise OR, whenever the value of a bit in one of the variables is 1, then the result will be 1 or else 0 ^ Bitwise XOR, whenever only one variable holds the value 1, then the result is 0 else 0 will be the result
== Equality, checks whether equal, returns 1 for true or 0 for false != Non-equality, checks whether unequal, returns 1 for true or 0 for false
<= Less than or equal, returns 1 for true or 0 for false >= Greater than or equal, returns 1 for true or 0 for false
< Less than, returns 1 for true or 0 for false > Greater than, returns 1 for true or 0 for false
Abs(x) Absolute Acos(x) Arc cosine, returns radians
Asin(x) Arc sine, returns radians Atan(x) Arc tangent, returns radians
Ceiling(x) Round up to the nearest integer Cos(x) Cosine, returns radians
Cosh(x) Hyperbolic cosine, returns radians Deg(x) Convert radians to degrees
Exp(x) Exponential function Floor(x) Round down
Heaviside(x) Returns 0 if x less than 0, otherwise returns 1 Integer(x) Integer part of x
Ln(x) Natural log of x Log10(x) Logarithm to the base 10
Max(x,y) Maximum of x and y Min(x,y) Minimum of x and y
Modf(x) Fraction part of x Pow(x,y) Raise x to the power of y
Rad(x) Convert degrees to radians Round(x,y) Round the number x to y decimal places
Sin(x) Sine, return radians Sinh(x) Hyperbolic sine, returns radians
Sqrt(x) Square root Tan(x) Tangent, returns radians
Tanh(x) Hyperbolic tangent, returns radians    

 

  • Was this article helpful?