diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index bce2d762695..7cf768a4e86 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -3785,16 +3785,31 @@ function ahrs:get_position() end -- Returns the current vehicle euler yaw angle in radians. ---@return number -- yaw angle in radians. +---@deprecated -- get_yaw_rad function ahrs:get_yaw() end -- Returns the current vehicle euler pitch angle in radians. ---@return number -- pitch angle in radians. +---@deprecated -- get_pitch_rad function ahrs:get_pitch() end -- Returns the current vehicle euler roll angle in radians. ---@return number -- roll angle in radians +---@deprecated -- get_roll_rad function ahrs:get_roll() end +-- Returns the current vehicle euler yaw angle in radians. +---@return number -- yaw angle in radians (0 to 2*Pi). +function ahrs:get_yaw_rad() end + +-- Returns the current vehicle euler pitch angle in radians. +---@return number -- pitch angle in radians. +function ahrs:get_pitch_rad() end + +-- Returns the current vehicle euler roll angle in radians. +---@return number -- roll angle in radians +function ahrs:get_roll_rad() end + -- desc AC_AttitudeControl = {} diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 1e105589373..967e8cd0e8f 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -34,11 +34,14 @@ singleton AP_AHRS rename ahrs singleton AP_AHRS depends AP_AHRS_ENABLED singleton AP_AHRS semaphore singleton AP_AHRS method get_roll_rad float -singleton AP_AHRS method get_roll_rad alias get_roll +singleton AP_AHRS method get_roll float +singleton AP_AHRS method get_roll deprecate Use get_roll_rad singleton AP_AHRS method get_pitch_rad float -singleton AP_AHRS method get_pitch_rad alias get_pitch +singleton AP_AHRS method get_pitch float +singleton AP_AHRS method get_pitch deprecate Use get_pitch_rad singleton AP_AHRS method get_yaw_rad float -singleton AP_AHRS method get_yaw_rad alias get_yaw +singleton AP_AHRS method get_yaw float +singleton AP_AHRS method get_yaw deprecate Use get_yaw_rad singleton AP_AHRS method get_location boolean Location'Null singleton AP_AHRS method get_location alias get_position singleton AP_AHRS method get_home Location