From 64b215076b99b35f49013621361b8119dadd1cd3 Mon Sep 17 00:00:00 2001 From: Philipp Borgers Date: Mon, 13 Mar 2023 18:19:17 +0100 Subject: [PATCH] PX4: Add missing sensor orientations to PX4 sensor setup UI (#10471) The enumeration of sensor orientation was not up to date. Reported in: https://github.com/mavlink/qgroundcontrol/issues/10465 I updated the enum based on the mavlink enum from here: https://mavlink.io/en/messages/common.html#MAV_SENSOR_ORIENTATION --- src/AutoPilotPlugins/PX4/SensorsSetup.qml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/SensorsSetup.qml b/src/AutoPilotPlugins/PX4/SensorsSetup.qml index 31dd1ec..4340bba 100644 --- a/src/AutoPilotPlugins/PX4/SensorsSetup.qml +++ b/src/AutoPilotPlugins/PX4/SensorsSetup.qml @@ -83,10 +83,21 @@ Item { "ROTATION_ROLL_270_YAW_135", "ROTATION_PITCH_90", "ROTATION_PITCH_270", - "ROTATION_ROLL_270_YAW_270", + "ROTATION_PITCH_180_YAW_90", + "ROTATION_PITCH_180_YAW_270", + "ROTATION_ROLL_90_PITCH_90", + "ROTATION_ROLL_180_PITCH_90", + "ROTATION_ROLL_270_PITCH_90", + "ROTATION_ROLL_90_PITCH_180", + "ROTATION_ROLL_270_PITCH_180", + "ROTATION_ROLL_90_PITCH_270", "ROTATION_ROLL_180_PITCH_270", - "ROTATION_PITCH_90_YAW_180", - "ROTATION_ROLL_90_PITCH_90" + "ROTATION_ROLL_270_PITCH_270", + "ROTATION_ROLL_90_PITCH_180_YAW_90", + "ROTATION_ROLL_90_YAW_270", + "ROTATION_ROLL_90_PITCH_68_YAW_293", + "ROTATION_PITCH_315", + "ROTATION_ROLL_90_PITCH_315" ] property Fact cal_mag0_id: controller.getParameterFact(-1, "CAL_MAG0_ID")