-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add MAV_CMD_SELECT_TRIGG_CAM command. #1749
Add MAV_CMD_SELECT_TRIGG_CAM command. #1749
Conversation
Sounds sensible but I'll have a proper look tomorrow. The things I'm interested in checking/questioning are (and you might want to clarify, but you might not since it is a stream of muddy thinking ...):
|
|
1533585
to
d9a375b
Compare
Thanks @MatejFranceskin ! There is a dev call this evening (my time tonight) if you want to come and discuss. Julian is on holiday and I'm not sure who will show up. Here are my thoughts anyway. As I understand it, when the autopilot executes this command it would broadcast the message to all cameras (vehicle system ID and component id =0). Each camera on the vehicle gets the message and checks whether it has a component id that matches the message (and stream ID). If it does, then it sets it's state to either ignore or accept future broadcast camera commands [the ignore is the interesting case, since presumably by default a camera will accept any broadcast command]. Is that about right? My first concern is what the GCS/user should do afterwards for cameras that were set disabled in the mission. For example, in the current model when flying outside of a mission the GCS allows you to switch between cameras, and commands are directed to the current camera.
My second concern is about the next mission. Generally it is much better if a setting in a mission does not persist beyond the mission. Lastly, I wonder if the mission should in some way display which cameras are active and which are inactive? Do we perhaps need to have a camera enabled/disabled state and publish that as well? Lots of questions sorry. PS
|
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
THanks for closing this @MatejFranceskin I don't think it is a solved problem yet. If we ever need to then I think we'd lean towards the gimbal approach and just add a target component id to an empty param (like MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE) and get the flight stack or mavlink camera to use this if it is non-zero. |
MAV_CMD_SELECT_TRIGG_CAM as a mission item added to the mission plan selects the camera and stream that will be used for capturing images in case where the vehicle has multiple cameras and/or camera has multiple sensors available.