-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Rover: reject position targets if acceleration supplied #28076
base: master
Are you sure you want to change the base?
Rover: reject position targets if acceleration supplied #28076
Conversation
Thanks @peterbarker for this. I guess this has been tested in some way? |
|
Tested in SITL with these commands:
(and gdb and breakpoints) |
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.
We discussed on the dev call and decided that we should add some text feedback to the user if their message is rejected because it's malformed
Relates to #23430 which has the same inability to share errors back to users for silently dropping invalid commands |
…masked Co-authored-by: muramura <[email protected]> we don't use acceleration if you're trying to move the vehicle, so we shouldn't accept the command it isn't in the "ignore" mask
… masked Co-authored-by: muramura <[email protected]> we don't use acceleration if you're trying to move the vehicle, so we shouldn't accept the command it isn't in the "ignore" mask
d66e98c
to
4be35cf
Compare
As requested:
|
@@ -845,6 +845,11 @@ void GCS_MAVLINK_Rover::handle_set_attitude_target(const mavlink_message_t &msg) | |||
} | |||
} | |||
|
|||
void GCS_MAVLINK_Rover::send_acc_ignore_must_be_set_message(const char *msgname) |
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.
sorry to be annoying but can you add a comment above the method? Just copying the method from the .h is fine.
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.
after the comment update, feel free to merge, thanks!
Replaces https://github.com/ArduPilot/ardupilot/pull/26955/files which simply factored the check out.
This both factors the check out and stops us accepting the position target if acceleration is set.
We should probably also reject if other bits and pieces are set.