Custom datasets DEMO-P096e8b893a3 · firmware 2.31+
Applied

Define up to two custom math expressions. They're evaluated once per flight-loop tick into dataset1 and dataset2, which you can then reference from any rule's conditions. Useful for derived quantities (kinetic energy, lateral acceleration magnitude, Mach number, anything else you can compute from the live sensor data).

0 / 40 nodes
0 / 40 nodes

Operators & syntax

+ − * / % ^ — arithmetic. Power (^) is right-associative. Use (parens) to group. Integer literals get a .0 appended automatically on save, so 1/2 always means floating-point 0.5, never integer 0.

Functions

sqrt abs ceil floor exp log log10 sin cos tan asin acos atan sinh cosh tanh (1 arg); pow atan2 fmod min max (2 args); if(cond, then, else) — conditional, picks then when cond > 0.

Constants

pi, e.

Safety

Divide-by-zero and similar faults return 0 instead of NaN. Results are clamped to ±109. A parse error stops the affected dataset from evaluating — rules referencing it see 0 until you fix the expression.