mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
13 lines
322 B
Lua
13 lines
322 B
Lua
-- test for the scripting airspeed backend, set ARSPD2_TYPE to 20 (Scripting)
|
|
|
|
local backend = airspeed:get_backend(1)
|
|
assert(backend, "ARSPD2_TYPE must be set to 20 (Scripting)")
|
|
|
|
function update()
|
|
backend:handle_script_airspeed(30.0)
|
|
backend:handle_script_temperature(25.0)
|
|
return update, 100
|
|
end
|
|
|
|
return update()
|