You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That assumes a single mavlink camera is attached, and that it uses the first camera-allocated ID. From a mavlink perspective that is wrong because those ids are suggestions for component IDs. Historically it should be 0 "broadcast".
Target camera ID. 7 to 255: MAVLink camera component id. 1 to 6 for cameras that don't have a distinct component id (such as autopilot-attached cameras). 0: all cameras. This is used to specifically target autopilot-connected cameras or individual sensors in a multi-sensor MAVLink camera. It is also used to target specific cameras when the MAV_CMD is used in a mission
So I would expect the component id to simply use whatever this says. If the value is 1 to 6 it should swallow the command being emitted. It would ideally also trigger the pins, but that would be up to the camera trigger driver (separate)
There are a number of other messages that also have this id.
This approach allows targetting of multiple cameras.
To Reproduce
Look at the code.
Expected behavior
Emitted camera messages should target indicated cameras.
Screenshot / Media
No response
Flight Log
Not relevant.
Software Version
main / all
Flight controller
NA
Vehicle type
Multicopter
How are the different components wired up (including port information)
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
void Navigator::publish_vehicle_cmd(vehicle_command_s *vcmd)
in https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/navigator/navigator_main.cpp emits camera commands found in missions to MAVLink network, targeting same system (correct) and component id 100.That assumes a single mavlink camera is attached, and that it uses the first camera-allocated ID. From a mavlink perspective that is wrong because those ids are suggestions for component IDs. Historically it should be 0 "broadcast".
Now the component id should be set according to the value of the camera command
id
parameter. For example, https://mavlink.io/en/messages/common.html#MAV_CMD_IMAGE_START_CAPTURE , param 1 is:So I would expect the component id to simply use whatever this says. If the value is 1 to 6 it should swallow the command being emitted. It would ideally also trigger the pins, but that would be up to the camera trigger driver (separate)
There are a number of other messages that also have this id.
This approach allows targetting of multiple cameras.
To Reproduce
Look at the code.
Expected behavior
Emitted camera messages should target indicated cameras.
Screenshot / Media
No response
Flight Log
Not relevant.
Software Version
main / all
Flight controller
NA
Vehicle type
Multicopter
How are the different components wired up (including port information)
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: