add arc functions to ipf#11179
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. |
|
Test firmware build ready — commit Download firmware for PR #11179 228 targets built. Find your board's
|
Thanks for adding trig inverse functions to IPF — these enable useful bearing and arc calculations in logic conditions. A two issues were found that should be addressed before merge: Critical: Opcode number mismatch between code and docsThe documentation assigns ACOS=57, ASIN=58, ATAN2=59. However, if IPF opcodes are persisted in EEPROM. A doc/code mismatch means users following the documentation will silently get wrong behavior, and correctly-configured craft could behave incorrectly after a firmware upgrade. Please verify the enum values against the target branch and update whichever side is wrong. Minor: ATAN2 output range not documented
Bot concern refutedThe Qodo bot flagged ASIN (importance 9) as computing ACOS instead of ASIN. This is incorrect — the implementation correctly calls |
Gotcha, small drift because we've been adding a few logic conditions in other merges. Fixed. |
User description
Added asin/acos/atan2 functions to IPF