From 77a985182c851889f07868ef91e7d41407df7c4d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 30 Apr 2022 19:25:52 +1000 Subject: [PATCH] AP_Scripting: added get_rpy_srate binding and remove dmod binding --- libraries/AP_Scripting/docs/docs.lua | 10 +++++----- .../AP_Scripting/generator/description/bindings.desc | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index e4214e5bc3..28b5172ef3 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1963,11 +1963,11 @@ function ahrs:get_roll() end ---@class AC_AttitudeControl AC_AttitudeControl = {} --- return PD modifier for VTOL controller ----@return number -- roll PDmod ----@return number -- pitch PDmod ----@return number -- yaw PDmod -function AC_AttitudeControl:get_rpy_PDmod() end +-- return slew rates for VTOL controller +---@return number -- roll slew rate +---@return number -- pitch slew rate +---@return number -- yaw slew rate +function AC_AttitudeControl:get_rpy_srate() end -- desc ---@class follow diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 80f7ec6b31..b66a0c2382 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -509,5 +509,4 @@ singleton AP_Follow method get_target_heading_deg boolean float'Null include AC_AttitudeControl/AC_AttitudeControl.h depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI singleton AC_AttitudeControl depends APM_BUILD_TYPE(APM_BUILD_ArduPlane)||APM_BUILD_COPTER_OR_HELI -singleton AC_AttitudeControl method get_rpy_PDmod void float'Ref float'Ref float'Ref - +singleton AC_AttitudeControl method get_rpy_srate void float'Ref float'Ref float'Ref