From a7f9abcff90676769b230b3bd67a5e894973b414 Mon Sep 17 00:00:00 2001 From: Tatsuya Yamaguchi Date: Mon, 19 Jun 2023 23:21:17 +0900 Subject: [PATCH] GCS_MAVLink: use SourceSetSelection enum class --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index e6318c9e2a..c546639ecc 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -4817,7 +4817,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_set_ekf_source_set(const mavlink_command_ uint32_t source_set = uint32_t(packet.param1); if ((source_set >= 1) && (source_set <= 3)) { // mavlink command uses range 1 to 3 while ahrs interface accepts 0 to 2 - AP::ahrs().set_posvelyaw_source_set(source_set-1); + AP::ahrs().set_posvelyaw_source_set((AP_NavEKF_Source::SourceSetSelection)(source_set-1)); return MAV_RESULT_ACCEPTED; } return MAV_RESULT_DENIED;