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 SITL segfault in camera trigger #12547

Merged
merged 2 commits into from
Aug 6, 2019
Merged

Fix SITL segfault in camera trigger #12547

merged 2 commits into from
Aug 6, 2019

Conversation

RomanBapst
Copy link
Contributor

In SITL the only supported camera interface mode is via mavlink. If the interface was not set to mavlink (and by default it was not set to that) then no camera interface was created and a null pointer was invoked.
This PR does the following:

  1. For posix build set the default trigger mode to mavlink.
  2. Exit cleanly if a camera interface was not created.

@RomanBapst RomanBapst requested review from bkueng and julianoes July 24, 2019 09:10
@RomanBapst
Copy link
Contributor Author

@bkueng I addressed your comment, please have a look.

Signed-off-by: RomanBapst <bapstroman@gmail.com>
supported on posix

Signed-off-by: RomanBapst <bapstroman@gmail.com>
@bkueng bkueng merged commit cfba41d into master Aug 6, 2019
@bkueng bkueng deleted the pr-cam_trig_sitl branch August 6, 2019 06:09
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