From f5e075b865be030659860e5dc2dc74876845f38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 5 Jan 2024 18:33:37 -0300 Subject: [PATCH] build: patches: Add move_mav_cmd_fixed_mag_cal_yaw_to_common MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- ..._mav_cmd_fixed_mag_cal_yaw_to_common.patch | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 build/patches/move_mav_cmd_fixed_mag_cal_yaw_to_common.patch diff --git a/build/patches/move_mav_cmd_fixed_mag_cal_yaw_to_common.patch b/build/patches/move_mav_cmd_fixed_mag_cal_yaw_to_common.patch new file mode 100644 index 0000000000..93d4e66961 --- /dev/null +++ b/build/patches/move_mav_cmd_fixed_mag_cal_yaw_to_common.patch @@ -0,0 +1,42 @@ +diff --git a/message_definitions/v1.0/ardupilotmega.xml b/message_definitions/v1.0/ardupilotmega.xml +index 35e57c0a..4af5f9c4 100644 +--- a/message_definitions/v1.0/ardupilotmega.xml ++++ b/message_definitions/v1.0/ardupilotmega.xml +@@ -121,16 +121,6 @@ + Empty. + Empty. + +- +- Magnetometer calibration based on provided known yaw. This allows for fast calibration using WMM field tables in the vehicle, given only the known yaw of the vehicle. If Latitude and longitude are both zero then use the current vehicle location. +- Yaw of vehicle in earth frame. +- CompassMask, 0 for all. +- Latitude. +- Longitude. +- Empty. +- Empty. +- Empty. +- + + Initiate a magnetometer calibration. + uint8_t bitmask of magnetometers (0 means all). +diff --git a/message_definitions/v1.0/common.xml b/message_definitions/v1.0/common.xml +index 1ccad646..13c205cb 100644 +--- a/message_definitions/v1.0/common.xml ++++ b/message_definitions/v1.0/common.xml +@@ -2540,6 +2540,16 @@ + Longitude. Note, if used in MISSION_ITEM (deprecated) the units are degrees (unscaled) + Altitude (MSL) + ++ ++ Magnetometer calibration based on provided known yaw. This allows for fast calibration using WMM field tables in the vehicle, given only the known yaw of the vehicle. If Latitude and longitude are both zero then use the current vehicle location. ++ Yaw of vehicle in earth frame. ++ CompassMask, 0 for all. ++ Latitude. ++ Longitude. ++ Empty. ++ Empty. ++ Empty. ++ + + Control the payload deployment. + Operation mode. 0: Abort deployment, continue normal mission. 1: switch to payload deployment mode. 100: delete first payload deployment request. 101: delete all payload deployment requests.