-
Notifications
You must be signed in to change notification settings - Fork 22
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
Stop sending MAVLink MANUAL_CONTROL
commands when there's no pilot input
#713
Stop sending MAVLink MANUAL_CONTROL
commands when there's no pilot input
#713
Conversation
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.
This seems reasonable and helpful - nice! :-)
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.
Not sending manual controls will make the vehicle to disarm, we should send the controls periodically to avoid such scenario.
Documentation note: |
@patrickelectric I think that's the point of this PR - if the joystick disconnects or the window gets hidden then the control station shouldn't be pretending it's receiving input from the pilot, and the vehicle should disarm if it's set up to do so using a pilot input failsafe (e.g. |
The code points that will only send joystick data if there is joystick events, so if there are no joystick inputs from the user, the vehicle will disarm. |
MANUAL_CONTROL
commandsMANUAL_CONTROL
commands when there's no pilot input
My assumption was that |
This patch makes Cockpit stops sending |
An ideal solution would account for whether there is a pilot input failsafe configured, and if so send repeated inputs only as often as necessitated by the timeout parameter (to minimise resource wastage). That said, I'm not sure whether non-ArduSub vehicles actually have such a failsafe - could be good to check that, and/or offer the repeated message frequency as a user-configurable parameter. |
Agree. Can you open an issue for us to track that? |
8a86e7f
to
18f8b25
Compare
@patrickelectric @ES-Alexander @Williangalvani changed accordingly to the discussion here (and some in particular):
This is because there's no such thing as "zeroing" a |
18f8b25
to
3262a0b
Compare
…n window is hidden
…e in the config page
3262a0b
to
a7c25e5
Compare
Fix #307