Dead Reckoning Switch

Theseus provides a Lua script that allows pilots to disable GPS position in the EKF with a 2- or 3-position RC switch. Disabling this position input allows your UAV to dead reckon using the EKF sensor data with Cyclops providing localized position updates. The script does this by setting the value of the EK3_SRC1_POSXY parameter to 3 (GPS) or 0 (Disabled).

Upload the script below to ArduPilot to enable this functionality:

Configuring an RC Switch

Select which switch on your controller you want to use and identify its corresponding RC channel in your mixing model. On your GCS software, set the corresponding RC option to Scripting 4 (value 303). For example, if your switch is on RC channel 7, set RC7_OPTION = 303.

circle-info

To enable this script in ArduPilot, set SCR_USER2=1 in the Full Parameters List. To prevent the script from running, set this parameter to 0.

circle-exclamation

Last updated