Math channels
Math channels allow you to calculate values based on measured data. For example you can calculate travelled distance from speed channel by using integral function.
Operators
Operator | Type | Description |
---|---|---|
+ | Arithmetic | Plus |
- | Arithmetic | Subtract |
* | Arithmetic | Multiply |
/ | Arithmetic | Divide |
% | Arithmetic | Remainder |
^ | Arithmetic | Exponent |
< | Comparison | Less than |
<= | Comparison | Less than or equal |
> | Comparison | Greater than |
>= | Comparison | Greater than or equal |
== | Comparison | Equal |
!= | Comparison | Not equal |
&& | Logical | And |
|| | Logical | Or |
! | Logical | Not |
Functions
Absolute value
Derivative
If condition
Function evaluates given condition if the result is true or false. Depending on the calculation results, function outputs the defined result.
if({condition}, {value-if-true}, {value-if-false})
Parameter | Description | Examples |
---|---|---|
condition | Expression to evaluate if given condition is true or false. Expression can include aritmethic calculations or various operators to evaluate values against In the expression any operators. | ([RPM] + 1000) > 10000 [RPM] > 10000 && [RPM] < 20000 |
value-if-true | Value or function to execute in case result from condition is true. It's possible to use channel as output, calculate new value or use static values | |
value-if-false | It's possible to use channel as output, calculate new value or use static values |
Integral
Function calculates the cumulative sum of channel/statement values. Function also give the possibility to reset calculation after lap changes.
integral( {data}, {lap-reset})
Parameter | Description | Example |
---|---|---|
data | ||
lap-reset | Boolean (true/false) option to enable integral value reset when lap changes. Use value 1 to enable lap reset and 0 to disable lap reset. |