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

Fix offboard plugin creation in example #246

Merged
merged 3 commits into from
Feb 7, 2018
Merged

Fix offboard plugin creation in example #246

merged 3 commits into from
Feb 7, 2018

Conversation

hamishwillee
Copy link
Collaborator

Pass in offboard plugin instance rather than creating multiple shared pointers.

Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@@ -67,10 +67,8 @@ inline void offboard_log(const std::string &offb_mode, const std::string msg)
*
* returns true if everything went well in Offboard control, exits with a log otherwise.
*/
bool offb_ctrl_ned(Device &device)
bool offb_ctrl_ned(Offboard* offboard)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You're passing the smart pointer std::shared_ptr<Offboard> offboard here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yoiks.

@hamishwillee
Copy link
Collaborator Author

@julianoes Thanks, fixed. Should be good to merge now.

@hamishwillee hamishwillee merged commit d20c482 into mavlink:develop Feb 7, 2018
@hamishwillee hamishwillee deleted the offboard branch February 7, 2018 10:32
rt-2pm2 pushed a commit to rt-2pm2/DronecodeSDK that referenced this pull request Nov 27, 2018
Fix offboard plugin creation in example
dlech pushed a commit to dlech/MAVSDK that referenced this pull request Jan 14, 2022
Add heading type to telemetry plugins
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.

3 participants