gimbal: implement gimbal_device_id

It turns out that I had omitted implementing the gimbal_device_id which
is the component ID of the gimbal device that the gimbal manager (in
this case PX4) is responsible for.

Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
Julian Oes
2023-05-01 09:02:25 -04:00
committed by Daniel Agar
parent b23eee40f0
commit 3f13a6e787
10 changed files with 34 additions and 12 deletions
@@ -71,7 +71,7 @@ private:
msg.time_boot_ms = gimbal_manager_information.timestamp / 1000;
msg.cap_flags = gimbal_manager_information.cap_flags;
msg.gimbal_device_id = 0;
msg.gimbal_device_id = gimbal_manager_information.gimbal_device_id;
msg.roll_min = gimbal_manager_information.roll_min;
msg.roll_max = gimbal_manager_information.roll_max;
msg.pitch_min = gimbal_manager_information.pitch_min;