From 29b9157a20c53d1dfb087f1294becc43c60fb4a5 Mon Sep 17 00:00:00 2001 From: Tatsuya Yamaguchi Date: Mon, 19 Jun 2023 23:20:52 +0900 Subject: [PATCH] AP_Scripting: use SourceSetSelection enum class --- libraries/AP_Scripting/docs/docs.lua | 3 +++ libraries/AP_Scripting/generator/description/bindings.desc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index c714ae91b2..6644ba2e94 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -3285,6 +3285,9 @@ function ahrs:get_vel_innovations_and_variances_for_source(source) end -- desc ---@param source_set_idx integer +---| '0' # PRIMARY +---| '1' # SECONDARY +---| '2' # TERTIARY function ahrs:set_posvelyaw_source_set(source_set_idx) end -- desc diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 02093649d8..6868e797d7 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -53,7 +53,7 @@ singleton AP_AHRS method earth_to_body Vector3f Vector3f singleton AP_AHRS method body_to_earth Vector3f Vector3f singleton AP_AHRS method get_EAS2TAS float singleton AP_AHRS method get_variances boolean float'Null float'Null float'Null Vector3f'Null float'Null -singleton AP_AHRS method set_posvelyaw_source_set void uint8_t 0 2 +singleton AP_AHRS method set_posvelyaw_source_set void AP_NavEKF_Source::SourceSetSelection'enum AP_NavEKF_Source::SourceSetSelection::PRIMARY AP_NavEKF_Source::SourceSetSelection::TERTIARY singleton AP_AHRS method get_vel_innovations_and_variances_for_source boolean uint8_t 3 6 Vector3f'Null Vector3f'Null singleton AP_AHRS method set_home boolean Location singleton AP_AHRS method get_origin boolean Location'Null