/
Sangak
/
ardupilot
Обзор
Документация
Войти
/
Sangak
/
ardupilot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libraries/AP_Scripting/examples/active_source_set.lua
11 строк
438 B
nrt
AP_Scripting: added Lua example demonstrating the use of active source set
18 авг 2022, 09:05
18 авг 2022, 09:05
2c58206
Код
Авторство
О чём код?
--returns active source set used by EKF3 -- can be used for infering the current source set in use without RC for autonomous source switching function update() -- this is the loop which periodically runs gcs:send_text(0, string.format("current source set in use :%d", ahrs:get_posvelyaw_source_set())) return update, 1000 -- 1000ms reschedules the loop (1Hz) end return update() -- run immediately before starting to reschedule