-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
manual control selection and cleanup #17404
Commits on Nov 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 025de50 - Browse repository at this point
Copy the full SHA 025de50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67dd62c - Browse repository at this point
Copy the full SHA 67dd62cView commit details -
manual_control: add selector class [WIP]
This adds a selector class with unit tests. The idea is to have a valid flag in manual_control_septoint and set that according to the selection and/or timeout of manual_control_inputs.
Configuration menu - View commit details
-
Copy full SHA for c0fd9a4 - Browse repository at this point
Copy the full SHA c0fd9a4View commit details -
rc_update: rename update method
This reflects better what it actually does.
Configuration menu - View commit details
-
Copy full SHA for 2aa6243 - Browse repository at this point
Copy the full SHA 2aa6243View commit details -
Configuration menu - View commit details
-
Copy full SHA for 427f3a3 - Browse repository at this point
Copy the full SHA 427f3a3View commit details -
manual_control: add instance to selector
This instance is then used to schedule the callback for the subscription.
Configuration menu - View commit details
-
Copy full SHA for 9b3e51b - Browse repository at this point
Copy the full SHA 9b3e51bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74fe748 - Browse repository at this point
Copy the full SHA 74fe748View commit details -
manual_control: move override detection
This also removes the option to ignore throttle for the override detection as it's not really required anymore.
Configuration menu - View commit details
-
Copy full SHA for 8ef0b2f - Browse repository at this point
Copy the full SHA 8ef0b2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b88a45 - Browse repository at this point
Copy the full SHA 7b88a45View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0a89bb - Browse repository at this point
Copy the full SHA e0a89bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0abe7fa - Browse repository at this point
Copy the full SHA 0abe7faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46ffdc4 - Browse repository at this point
Copy the full SHA 46ffdc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cd54e5 - Browse repository at this point
Copy the full SHA 2cd54e5View commit details -
commander: move main_state_transition out
This is a first step to having a desired main state.
Configuration menu - View commit details
-
Copy full SHA for 34964e0 - Browse repository at this point
Copy the full SHA 34964e0View commit details -
commander: only move to POSCTL when armed
I don't think we want to switch to POSCTL when the sticks are moved when armed.
Configuration menu - View commit details
-
Copy full SHA for e1f2798 - Browse repository at this point
Copy the full SHA e1f2798View commit details -
manual_control: send initial mode in the beginning
In order for commander to know the desired mode we need to send the initial position of the mode slot.
Configuration menu - View commit details
-
Copy full SHA for 0d3c786 - Browse repository at this point
Copy the full SHA 0d3c786View commit details -
commander: move valid mission check inside
I think it makes more sense to move this check inside of main_state_transition.
Configuration menu - View commit details
-
Copy full SHA for 33deed7 - Browse repository at this point
Copy the full SHA 33deed7View commit details -
commander: always reset posvel validity
I assume reseting posvel validity is ok for any case, not just all cases except manual, acro, stabilized.
Configuration menu - View commit details
-
Copy full SHA for bc9c4d9 - Browse repository at this point
Copy the full SHA bc9c4d9View commit details -
commander: add desired main state
This is an intermediate solution to carry forward the initial state of the mode slot. Basically, it allows that we start up in Stabilized but switch to POSCTL as soon we have the required GPS.
Configuration menu - View commit details
-
Copy full SHA for 4d27a00 - Browse repository at this point
Copy the full SHA 4d27a00View commit details -
commander: move manual_control and switches out
This moves the remaining handling of the manual control stuff out of commander. All communication between manual control now goes through vehicle commands, and the landing gear topic.
Configuration menu - View commit details
-
Copy full SHA for 2b6513f - Browse repository at this point
Copy the full SHA 2b6513fView commit details -
manual_control: use filter to check user override
Instead of only looking at the diff between two RC samples to decide whether a user wants to override, we now look at the filtered diff over one second. This should be more robust to RC sent at various or varying rates.
Configuration menu - View commit details
-
Copy full SHA for 6f891ce - Browse repository at this point
Copy the full SHA 6f891ceView commit details -
commander: only override according to param
This got lost in the refactor earlier.
Configuration menu - View commit details
-
Copy full SHA for a0a1316 - Browse repository at this point
Copy the full SHA a0a1316View commit details -
manual_control: ORBIT and PRECLAND not supported
ORBIT and PRECLAND are not actually possible on the flight mode switch.
Configuration menu - View commit details
-
Copy full SHA for 762dee4 - Browse repository at this point
Copy the full SHA 762dee4View commit details -
manual_control: support arming button
The arming button required some refactoring in order to support to toggle arm/disarm using the vehicle_command. Otherwise manual_control would have to subscribe to the arming topic and we would spread out the logic again, and risk race conditions.
Configuration menu - View commit details
-
Copy full SHA for b9a27ea - Browse repository at this point
Copy the full SHA b9a27eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bebdb46 - Browse repository at this point
Copy the full SHA bebdb46View commit details -
Configuration menu - View commit details
-
Copy full SHA for b072a41 - Browse repository at this point
Copy the full SHA b072a41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18f315f - Browse repository at this point
Copy the full SHA 18f315fView commit details -
msg: re-use manual_control_input in setpoint
This way we avoid duplication between manual_control_input and manual_control_setpoint.
Configuration menu - View commit details
-
Copy full SHA for d74edad - Browse repository at this point
Copy the full SHA d74edadView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb02420 - Browse repository at this point
Copy the full SHA eb02420View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0fb4f0 - Browse repository at this point
Copy the full SHA d0fb4f0View commit details -
manual_control: add reset to diff
This should prevent triggering user override right after RC re-appears.
Configuration menu - View commit details
-
Copy full SHA for 0758872 - Browse repository at this point
Copy the full SHA 0758872View commit details -
manual_control: update first, get diff after
Not sure why I had this the wrong way round.
Configuration menu - View commit details
-
Copy full SHA for 6c1d5fc - Browse repository at this point
Copy the full SHA 6c1d5fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f992d9 - Browse repository at this point
Copy the full SHA 1f992d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00c1079 - Browse repository at this point
Copy the full SHA 00c1079View commit details -
Better checking once too much than once too little.
Configuration menu - View commit details
-
Copy full SHA for 5c23655 - Browse repository at this point
Copy the full SHA 5c23655View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79fb31d - Browse repository at this point
Copy the full SHA 79fb31dView commit details -
ManualControlSelectorTest: add constantly outdated samples case
Reviewing the code I saw this case arising from the order things get checked.
Configuration menu - View commit details
-
Copy full SHA for d61f989 - Browse repository at this point
Copy the full SHA d61f989View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c74b2c - Browse repository at this point
Copy the full SHA 9c74b2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55e54e5 - Browse repository at this point
Copy the full SHA 55e54e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ce7ef2 - Browse repository at this point
Copy the full SHA 5ce7ef2View commit details -
manual_control: don't switch gear on first init
This will ignore the first transition from NONE to something. This matches the behaviour that existed before.
Configuration menu - View commit details
-
Copy full SHA for 9470132 - Browse repository at this point
Copy the full SHA 9470132View commit details -
Configuration menu - View commit details
-
Copy full SHA for 068ec5b - Browse repository at this point
Copy the full SHA 068ec5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee1bca5 - Browse repository at this point
Copy the full SHA ee1bca5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fa0a39 - Browse repository at this point
Copy the full SHA 3fa0a39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 175b124 - Browse repository at this point
Copy the full SHA 175b124View commit details -
Configuration menu - View commit details
-
Copy full SHA for 879c6d2 - Browse repository at this point
Copy the full SHA 879c6d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0661e01 - Browse repository at this point
Copy the full SHA 0661e01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49115bb - Browse repository at this point
Copy the full SHA 49115bbView commit details -
mc_rate_control: always allow landing gear control
Except of course when landed and we try to put it up.
Configuration menu - View commit details
-
Copy full SHA for f72c8a7 - Browse repository at this point
Copy the full SHA f72c8a7View commit details -
commander: remove unused mode/main_state methods
With the previous changes these seem no longer required.
Configuration menu - View commit details
-
Copy full SHA for dfa51a5 - Browse repository at this point
Copy the full SHA dfa51a5View commit details -
commander/manual_control: use msg enum for params
Instead of using a private enum class we should define the enum in the vehicle_command message and then use it consistently.
Configuration menu - View commit details
-
Copy full SHA for e138b9d - Browse repository at this point
Copy the full SHA e138b9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 414cdef - Browse repository at this point
Copy the full SHA 414cdefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 455a200 - Browse repository at this point
Copy the full SHA 455a200View commit details -
Configuration menu - View commit details
-
Copy full SHA for 493888c - Browse repository at this point
Copy the full SHA 493888cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cfc29f - Browse repository at this point
Copy the full SHA 9cfc29fView commit details -
state_machine_helper: rever explicitly handling unavaialble mission
It was already handled by the existing condition.
Configuration menu - View commit details
-
Copy full SHA for 87d2fa2 - Browse repository at this point
Copy the full SHA 87d2fa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6158e02 - Browse repository at this point
Copy the full SHA 6158e02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c999d1 - Browse repository at this point
Copy the full SHA 0c999d1View commit details -
ManualControlSelector: copy manual_control_input struct instead of ea…
…ch individual field
Configuration menu - View commit details
-
Copy full SHA for 381ef7f - Browse repository at this point
Copy the full SHA 381ef7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bc7586 - Browse repository at this point
Copy the full SHA 0bc7586View commit details -
Configuration menu - View commit details
-
Copy full SHA for 843480b - Browse repository at this point
Copy the full SHA 843480bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eb181b - Browse repository at this point
Copy the full SHA 8eb181bView commit details -
Commander: don't publish RC_IN_MODE to vehicle_status
This just contains the content of the parameter which is redundant and results in multiple sources of truth.
Configuration menu - View commit details
-
Copy full SHA for d28fd54 - Browse repository at this point
Copy the full SHA d28fd54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82ce058 - Browse repository at this point
Copy the full SHA 82ce058View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bf0ce8 - Browse repository at this point
Copy the full SHA 3bf0ce8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b5e4fb - Browse repository at this point
Copy the full SHA 5b5e4fbView commit details -
ManualControl: fix arm button logic during testing
The latching logic has to be different than for the arm switch this difference got lost in the rewrite of the old obfuscated arming trigger logic.
Configuration menu - View commit details
-
Copy full SHA for 47e1ae3 - Browse repository at this point
Copy the full SHA 47e1ae3View commit details -
ManualControlSelector: simplification refactoring
- clang tidy did't like {bool} == true in a condition - setpoint_from_input() got small enough ot just put in line
Configuration menu - View commit details
-
Copy full SHA for 694e389 - Browse repository at this point
Copy the full SHA 694e389View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a6a49c - Browse repository at this point
Copy the full SHA 9a6a49cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3e38e4 - Browse repository at this point
Copy the full SHA a3e38e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2dfd06 - Browse repository at this point
Copy the full SHA c2dfd06View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba7a745 - Browse repository at this point
Copy the full SHA ba7a745View commit details -
Replace arm_request and mode_request with combined action_request
Which saves flash space, log size and is extensible to handle e.g. the VTOL transition and future actions.
Configuration menu - View commit details
-
Copy full SHA for f81b5cb - Browse repository at this point
Copy the full SHA f81b5cbView commit details -
Commander: fix "Manual control lost" showing double in QGC
because of the missing tab in the deprecated message.
Configuration menu - View commit details
-
Copy full SHA for 8f144d9 - Browse repository at this point
Copy the full SHA 8f144d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f3d2cf - Browse repository at this point
Copy the full SHA 8f3d2cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd18d9 - Browse repository at this point
Copy the full SHA 9bd18d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 292c5ab - Browse repository at this point
Copy the full SHA 292c5abView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3439ec - Browse repository at this point
Copy the full SHA c3439ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for f980603 - Browse repository at this point
Copy the full SHA f980603View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4510675 - Browse repository at this point
Copy the full SHA 4510675View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53dfe0e - Browse repository at this point
Copy the full SHA 53dfe0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec1f1f7 - Browse repository at this point
Copy the full SHA ec1f1f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe27469 - Browse repository at this point
Copy the full SHA fe27469View commit details -
Configuration menu - View commit details
-
Copy full SHA for 545be15 - Browse repository at this point
Copy the full SHA 545be15View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb6a608 - Browse repository at this point
Copy the full SHA bb6a608View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9293c03 - Browse repository at this point
Copy the full SHA 9293c03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f82b49 - Browse repository at this point
Copy the full SHA 0f82b49View commit details -
Configuration menu - View commit details
-
Copy full SHA for effc78c - Browse repository at this point
Copy the full SHA effc78cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39ec0d0 - Browse repository at this point
Copy the full SHA 39ec0d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6421f5 - Browse repository at this point
Copy the full SHA f6421f5View commit details