Skip to content

Commit

Permalink
AP_Scripting: adjust for renaming of SIM_GPS_DISABLE to SIM_GPS1_ENABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Nov 19, 2024
1 parent 4090777 commit 3b295ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Scripting/applets/copter-deadreckon-home.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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!)
--
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_Scripting/applets/copter-deadreckon-home.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!)

Expand Down

0 comments on commit 3b295ce

Please sign in to comment.