Skip to content

MavLink (PX4 sitl) triggering camera #734

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

Open
kjetilkjeka opened this issue Jan 14, 2018 · 5 comments
Open

MavLink (PX4 sitl) triggering camera #734

kjetilkjeka opened this issue Jan 14, 2018 · 5 comments

Comments

@kjetilkjeka
Copy link

We're doing an application that requires the possibility of planning a mission from QGC with camera caputre. It seems like AirSim currently doesn't do anything with the corresponding MavLink message, would it be of interest to have such features up-streamed?

If my limited understanding of the codebase is correct it should be implemented in the handleMessage method of a subclass of MavLinkNodeImpl. Would MavLinkVehicle or a new class similar to MavLinkVideoServerImpl make the most sense?

@sytelus
Copy link
Contributor

sytelus commented Jan 18, 2018

Which messages you are interested in handling? Currently we only handle actuator messages, i.e., how vehicle moves around.

@kjetilkjeka
Copy link
Author

Since the HITL messages is implemented, and it's reasonable to use AUX channels for the gimbal the only new message i would like to implement is the CAMERA_TRIGGER message.

The PX4 tutorial for camera trigger states that if TRIG_INTERFACE = 3 the autopilot will send a CAMERA_TRIGGER over MavLink. This is the message i wish to react to. The desired behavior would be similar to starting and stoping a recording except exactly one frame would be stored per CAMERA_TRIGGER message.

@kjetilkjeka
Copy link
Author

I've made this work but I'm no longer sure that using the CAMERA_TRIGGER message is the correct one. I've created an issue on the MavLink repo to hopefully get the correct message to use.

After i get a response from the MavLink guys, support in PX4 is the next step.

@sytelus
Copy link
Contributor

sytelus commented Feb 13, 2018

Let us know how this goes. We haven't used these features yet... It would be great if you can submit a PR with your change!

@sytelus
Copy link
Contributor

sytelus commented Feb 21, 2018

@sytelus sytelus added the px4 label Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants