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

Parameterize the flight stack for MAVROS #41

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

Ryanf55
Copy link
Contributor

@Ryanf55 Ryanf55 commented Feb 19, 2024

Purpose

Allow launching MAVROS configured for either ArduPilot or PX4 configuration through launch arguments.

Benefits

Don't need to comment/uncomment code to change which is used

Cost

Code duplication with the Node object. There may be cleaner ways to do this, but it's better than before.

Details

I think we can use an if_condition to launch either PX4 or ArduPilot. Just have to figure out how to do that without duplicating the Node object.

* Reduce some code duplication

Signed-off-by: Ryan Friedman <[email protected]>
@Ryanf55 Ryanf55 changed the title Paramaterize the flight stack for MAVROS Parameterize the flight stack for MAVROS Feb 19, 2024
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Minor comment on default variable

* Only PX4 works right now
* When ArduPilot also works, the default can be removed

Signed-off-by: Ryan Friedman <[email protected]>
@Jaeyoung-Lim Jaeyoung-Lim merged commit f21b561 into ethz-asl:ros2 Feb 19, 2024
3 checks passed
@Ryanf55 Ryanf55 deleted the start-options-for-flight-stack branch February 19, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants