Skip to main content
Skip table of contents

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

OperatorTypeDescription
+ArithmeticPlus
-ArithmeticSubtract
*ArithmeticMultiply
/ArithmeticDivide
%ArithmeticRemainder
^ArithmeticExponent
<ComparisonLess than
<=ComparisonLess than or equal
>ComparisonGreater than
>=ComparisonGreater than or equal
==ComparisonEqual
!=ComparisonNot equal
&&LogicalAnd
||LogicalOr
!LogicalNot

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.

JS
if({condition}, {value-if-true}, {value-if-false})
ParameterDescriptionExamples
conditionExpression 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-trueValue 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-falseIt'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.

JS
integral( {data}, {lap-reset})
ParameterDescriptionExample
data

lap-resetBoolean (true/false) option to enable integral value reset when lap changes. Use value 1 to enable lap reset and 0 to disable lap reset.

Square

Square root

Channels

Syntax

Examples

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.