common: use camera ID for CAMERA_IMAGE_CAPTURED (#2196)

* common: use camera ID for CAMERA_IMAGE_CAPTURED

The message CAMERA_IMAGE_CAPTURED is lacking a camera_device_id but I
think we can just use the unused camera_id instead.

* Update message_definitions/v1.0/common.xml

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
Julian Oes
2024-12-18 16:09:36 +13:00
committed by GitHub
parent 5e3a42b8f3
commit 2f44ceff0f
+1 -1
View File
@@ -7020,7 +7020,7 @@
set to the sequence number of the final message in the range.</description>
<field type="uint32_t" name="time_boot_ms" units="ms">Timestamp (time since system boot).</field>
<field type="uint64_t" name="time_utc" units="us" invalid="0">Timestamp (time since UNIX epoch) in UTC. 0 for unknown.</field>
<field type="uint8_t" name="camera_id">Deprecated/unused. Component IDs are used to differentiate multiple cameras.</field>
<field type="uint8_t" name="camera_id" default="0" minValue="0" maxValue="6">Camera id of a non-MAVLink camera attached to an autopilot (1-6). 0 if the component is a MAVLink camera (with its own component id). Field name is usually camera_device_id.</field>
<field type="int32_t" name="lat" units="degE7">Latitude where image was taken</field>
<field type="int32_t" name="lon" units="degE7">Longitude where capture was taken</field>
<field type="int32_t" name="alt" units="mm">Altitude (MSL) where image was taken</field>