gimbal: don't spoof gimbal device (#24271)

The current approach was wrong because the gimbal protocol now
handles the case properly where the autopilot is in charge of a
non-MAVLink gimbal.

This means that we don't need to send message "as if we were a gimbal
device" and instead set thet gimbal_device_id to 1 (up to 6) to indicate
we are in charge or a non-MAVLink gimbal.
This commit is contained in:
Julian Oes
2025-01-31 12:59:41 +13:00
committed by GitHub
parent 4c2e69b2e6
commit a9214b3aa3
4 changed files with 22 additions and 41 deletions
+3
View File
@@ -109,6 +109,9 @@ void OutputMavlinkV1::update(const ControlData &control_data, bool new_setpoints
_stream_device_attitude_status();
// If the output is MAVLink v1, then we signal this by referring to compid 1.
gimbal_device_id = 1;
_last_update = now;
}