From ec1dc7cbc558ba94e687344bb084ac6fef113216 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 13 Nov 2024 07:30:18 +1100 Subject: [PATCH] AP_Scripting: adjust for renaming of SIM_GPS_DISABLE to SIM_GPS1_ENABLE --- libraries/AP_Scripting/applets/copter-deadreckon-home.lua | 4 ++-- libraries/AP_Scripting/applets/copter-deadreckon-home.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Scripting/applets/copter-deadreckon-home.lua b/libraries/AP_Scripting/applets/copter-deadreckon-home.lua index 152b752a00..31d5f37785 100644 --- a/libraries/AP_Scripting/applets/copter-deadreckon-home.lua +++ b/libraries/AP_Scripting/applets/copter-deadreckon-home.lua @@ -31,8 +31,8 @@ -- -- Testing in SITL: -- a. set map setshowsimpos 1 (to allow seeing where vehicle really is in simulator even with GPS disabled) --- b. set SIM_GPS_DISABLE = 1 to disable GPS (confirm dead reckoning begins) --- c. set SIM_GPS_DISABLE = 0 to re-enable GPS +-- b. set SIM_GPS1_ENABLE = 0 to disable GPS (confirm dead reckoning begins) +-- c. set SIM_GPS1_ENABLE = 1 to re-enable GPS -- d. set SIM_GPS_NUMSAT = 3 to lower simulated satellite count to confirm script triggers -- e. set DR_GPS_SACC_MAX = 0.01 to lower the threshold and trigger below the simulator value which is 0.04 (remember to set this back after testing!) -- diff --git a/libraries/AP_Scripting/applets/copter-deadreckon-home.md b/libraries/AP_Scripting/applets/copter-deadreckon-home.md index c45ae3080c..b750eb4d2b 100644 --- a/libraries/AP_Scripting/applets/copter-deadreckon-home.md +++ b/libraries/AP_Scripting/applets/copter-deadreckon-home.md @@ -39,8 +39,8 @@ Deadreckoning will only be activated while the vehicle is in autonomous modes (e ## Testing in SITL - set map setshowsimpos 1 (to allow seeing where vehicle really is in simulator even with GPS disabled) - - set SIM_GPS_DISABLE = 1 to disable GPS (confirm dead reckoning begins) - - set SIM_GPS_DISABLE = 0 to re-enable GPS + - set SIM_GPS1_ENABLE = 0 to disable GPS (confirm dead reckoning begins) + - set SIM_GPS1_ENABLE = 1 to re-enable GPS - set SIM_GPS_NUMSAT = 3 to lower simulated satellite count to confirm script triggers - set DR_GPS_SACC_MAX = 0.01 to lower the threshold and trigger below the simulator value which is 0.04 (remember to set this back after testing!)