-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: implement external control #25204
Rover: implement external control #25204
Conversation
508ba01
to
83715a6
Compare
Return true if Copter is ready to handle external control data. | ||
Currently checks mode and arm states. | ||
*/ | ||
bool ready_for_external_control(); |
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.
Could add WARN_IF_UNUSED
for these two functions
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.
Could do. They're not marked as such in the Copter implementation of external control. What's the recommended house style for adding these attributes?
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.
I'd add them to Copter, perhaps in a separate PR. It's just additional compile-time-safety, not critical or a blocker.
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.
Ok - maybe we could do as a follow up in both cases to keep things consistent.
Signed-off-by: Rhys Mainwaring <[email protected]> Rover: update comment in Rover/AP_ExternalControl_Rover.h Co-authored-by: Nick E <[email protected]>
267457d
to
2c609c6
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.
LGTM, looks very like copter implementation.
Implement external control for Rover.
Testing
Tested in Gazebo with WildThumper robot, cartographer and navigation 2.