Conversation
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
PR Compliance Guide 🔍All compliance sections have been disabled in the configurations. |
|
It looks like you did a lot of great work here. Thanks. |
|
The inav part was merged but i somehow missed this, i'll finish it |
Resolve the inav_constants.js OPERATION_NAMES conflict and bring the branch up to date with maintenance-10.x (it was 517 commits behind). The firmware that actually merged (iNavFlight/inav#11179, plus a SET_ALTITUDE_TARGET=57 inserted ahead of it) assigns the arc-trig logic conditions as ACOS=58, ASIN=59, ATAN2=60 — one higher than the 57/58/59 this PR originally used. Renumber ACOS/ASIN/ATAN2 in the OPERATION constants, OPERATION_NAMES, and LOGIC_OPERATORS to match, so generated logic commands map to the correct firmware operations.
Firmware maintenance-10.x defines LOGIC_CONDITION_SET_ALTITUDE_TARGET=57 (navigationSetAltitudeTargetWithDatum): operand A = altitude datum flag (0 takeoff / 1 MSL / 2 terrain), operand B = target altitude. It was missing from the configurator, leaving a gap at 57. Register it in the OPERATION constants, OPERATION_NAMES, and the LOGIC_OPERATORS table (two operands, boolean output) so it is selectable and labeled in the Logic Conditions editor.
|
This is ready, reminder to me to update inav's docs/Programming Framework.md |
|



User description
Add support for arc function IPF LCs (see iNavFlight/inav#11179)
PR Type
Enhancement, New Feature
Description
Add support for inverse trigonometric functions (acos, asin, atan2)
Replace hardcoded operation numbers with named constants for maintainability
Update error messages and diagnostics to reflect new supported functions
Define new logic operators 57, 58, 59 for arc trigonometry operations
Diagram Walkthrough
File Walkthrough
5 files
Add arc trig functions and refactor operation constantsImplement code generation for arc trigonometric functionsDefine new logic operators for arc trigonometryUpdate diagnostics to support arc trigonometric functionsAdd operation constants for arc trigonometric functions1 files
Add TypeScript type declarations for arc functions3 files