-
Notifications
You must be signed in to change notification settings - Fork 14.6k
new manual_control_switches msg (split out of manual_control_setpoint) #16270
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
Conversation
47da5b8 to
197a44a
Compare
41bef1e to
ca3ea83
Compare
ca3ea83 to
62a97ef
Compare
|
This is ready for review, but won't be mergable until we fix the flash shortage. |
src/lib/flight_tasks/tasks/ManualAltitude/FlightTaskManualAltitude.cpp
Outdated
Show resolved
Hide resolved
9d5925f to
eaa37e0
Compare
eaa37e0 to
be275ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements, good that you went after the ancient rc_update 👍 It was not easy to go through because of the one commit reordering, indentation, new logic.
I found some issues, the blocking ones to fix being:
- Old stick value usage in auto land because of missing timeout
- Any switch change resulting in mode switch evaluation
src/lib/flight_tasks/tasks/ManualAltitude/FlightTaskManualAltitude.cpp
Outdated
Show resolved
Hide resolved
src/lib/flight_tasks/tasks/ManualAltitude/FlightTaskManualAltitude.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Matthias Grob <[email protected]>
Co-authored-by: Matthias Grob <[email protected]>
Co-authored-by: Matthias Grob <[email protected]>
|
Bench tested basic mode switches (mode slot), kill switch, etc. https://logs.px4.io/plot_app?log=955b2728-4981-40ef-bc4d-c272c8d8371a |
|
@dagar Thanks for addressing the comments!
|
Yes I was prepared to jump on that as soon as this lands in master.
Let's go for it. |
Co-authored-by: Matthias Grob <[email protected]>
5e8f16f to
6013fcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks correct to me now. Also the latest changes to the landing gear logic.
Missing is the flight review adaption that could theoretically go together with #15949 at least I made the pr ready for review.
|
Thanks @MaEtUgR for the very thorough code review. |

manual_control_setpointinto new messagemanual_control_switchesmanual_control_switchespublished at minimal rate (~ 1 Hz) or immediately on changecommander now pollsrevisit latermanual_control_switchesrather than sleepingmanual_control_switcheslogged at full rate rather than sampled at (5-10% of messages logged)mode_slotandmode_switchis now split so we only do one or the other (not both)mode_switchand accompanying switches entirelyFYI @RicardoM17 @mhkabir @MaEtUgR