I had a few questions about the scripting that help me clarify the structure.
1. What exactly does <precision> do? And how do you determine what value of precision you choose?
2. Are spaces required in functions or mathematical equations? (1+2) vs. ( 1 + 2)...
3. If i have cancatenated messages that change wgat variables they define based on the first byte, how would I go about defining these variables in the script?
<precision> definition, space sensitivity, cancatenat
-
- Posts: 5
- Joined: Tue Feb 07, 2017 4:29 am
- Location: Murfreesboro TN
- Contact:
1) precision is the logged number of decimal places to report in the log file or over telemetry. 0 = log / broadcast whole numbers, 2 = two digits of precision (1.23) and so on.
2) spaces are not required. It's standard Lua syntax; so anything in the Lua syntax will work: https://www.lua.org/pil/1.html
3) I don't understand the question, sorry.
2) spaces are not required. It's standard Lua syntax; so anything in the Lua syntax will work: https://www.lua.org/pil/1.html
3) I don't understand the question, sorry.