-
Notifications
You must be signed in to change notification settings - Fork 285
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
common: add set-camera-source command #351
Conversation
2018d87
to
e58fd5e
Compare
Why not just treat changing the active lens as changing camera mode? |
Thanks for the review. I thought of using camera-mode but the purpose of the SET_CAMERA_MODE command (and enum) appears to be switching between picture-taking-mode and video-taking-mode.. so a different purpose. With the ViewPro cameras there are 3 to 7 different combinations of "lenses". |
I understand the problem :) |
Yes, I've raised a PR upstream and I'm looking forward to feedback. It's really not two separate cameras though because they don't have separate controls. For example once the thermal lens (or whatever we call it) has become the active lens, other lens cannot be controlled. So it acts like a single camera with multiple lenses. I'm very open to alternative solutions.. |
5ed8572
to
0a69ff2
Compare
0a69ff2
to
d5fae7a
Compare
This adds a mavlink command to change the active camera lens (e.g. which camera lens is being streamed to the GCS). This is useful for cameras with multiple lenses like the ViewPro and Xacti cameras.
This has already been merged upstream albeit after much discussion. mavlink#2079
This also includes the unused mavlink command MAV_CMD_SET_STORAGE_USAGE which AP doesn't use but is directly above this new command in common.xml.