/
Sangak
/
ardupilot
Обзор
Документация
Войти
/
Sangak
/
ardupilot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libraries/AP_Scripting/examples/simple_named_string.lua
10 строк
523 B
Peter Barker
AP_Scripting: add test for NAMED_VALUE_STRING
10 авг 2025, 01:38
10 авг 2025, 01:38
4e7e417
Код
Авторство
О чём код?
-- This script just sends a named value string in a loop... function update() -- this is the loop which periodically runs gcs:send_named_string('Lua String', "Lua String Value") -- send a value -- this one is 70 characters long (longer than the field length of Value): gcs:send_named_string('Long Lua String', "0123456789012345678901234567890123456789012345678901234567890123456789") -- send a value return update, 1000 -- reschedules the loop end return update() -- run immediately before starting to reschedule