1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 11:29:56 +03:00

Update Programming Framework.md

Updated integer math comment based on feedback
This commit is contained in:
trailx 2024-09-10 08:24:13 -04:00 committed by GitHub
parent 954eb3660d
commit 4f02dc0b50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ INAV Programming Framework consists of:
IPF can be edited using INAV Configurator user interface, or via CLI. To use COnfigurator, click the tab labeled IPF can be edited using INAV Configurator user interface, or via CLI. To use COnfigurator, click the tab labeled
"Programming". The various options shown in Configurator are described below. "Programming". The various options shown in Configurator are described below.
**Note:** IPF uses non-floating-point math, so it only can return integers. If your programming line returns a decimal, it will be reduced an integer. So if your math is `1` / `3` = , IPF will truncate the decimal and return `0`. **Note:** IPF uses integer math. If your programming line returns a decimal, it will be truncated to an integer. So if your math is `1` / `3` = , IPF will truncate the decimal and return `0`.
## Logic Conditions ## Logic Conditions