Skip to content
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

Merged

Conversation

srmainwaring
Copy link
Contributor

Implement external control for Rover.

Testing

Tested in Gazebo with WildThumper robot, cartographer and navigation 2.

rover-ext-ctrl

Return true if Copter is ready to handle external control data.
Currently checks mode and arm states.
*/
bool ready_for_external_control();
Copy link
Collaborator

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

Copy link
Contributor Author

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?

Copy link
Collaborator

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.

Copy link
Contributor Author

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]>
@srmainwaring srmainwaring force-pushed the prs/pr-rover-external-control branch from 267457d to 2c609c6 Compare October 23, 2023 23:30
Copy link
Member

@IamPete1 IamPete1 left a 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.

@peterbarker peterbarker merged commit 23244ed into ArduPilot:master Oct 24, 2023
54 checks passed
@srmainwaring srmainwaring deleted the prs/pr-rover-external-control branch October 25, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants