-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WP "user actions" breaks waypoint navigation #1721
Comments
Configurator needs updating to read the WP P3 parameter as a Bitfield rather than a boolean as it does at the moment. |
Configurator has been updated to read P3 as a bitfield. I thought I had tested that everything was toggled correctly. But something must have slipped through. |
OK missed that change. I was going to do it but seems you've saved me the trouble. So just updated Configurator and checked this and it appears that the Bit is being set but not unset, so once it's been set it gets stuck true. |
The other problem is P3 is used as a boolean in various places which affects the altitude calculation depending on whether SL or relative altitude datum is used. Bit 0 needs checking rather than just the boolean state of the P3 value. I've made some changes that have fixed the obvious things, need to check other stuff isn't affected. |
Do you want me to fix this @MrD-RC given it's related to the MSL Altitude stuff I did originally ? |
@breadoven I found somewhere that was using P3 as a Boolean. So I've sorted that and fixed some other things too. The Elevation (m) and Grd Dist (m) seem to be working correctly to me. But, the elevation profile doesn't seem right. I couldn't see any references to P3 in there. Your thoughts? It may be fine though. It looks the same in 5.1 Configurator. |
Added a PR #1722 |
There is something causing issues in the elevation profile. If I disable the user actions, it looks as I would expect. |
Short video demonstrating issue:
https://user-images.githubusercontent.com/8989151/218552591-65620b35-67e2-451c-ae52-334931ab7444.mp4
Text version - mission waypoint with user action set has it's altitude set to MSL+preset altitude, while AGL setting is selected.
This was registered as issue on another branch but it looks like firmware has nothing to do with it:
iNavFlight/inav#8798
In short - looks like INAV-configurator incorrectly parses bit0 in P3 field and and this is reason why alt is set to wrong value.
The text was updated successfully, but these errors were encountered: