You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
312 B
15 lines
312 B
4 years ago
|
-- example script for using "set_home()"
|
||
|
-- sets the home location to the current vehicle location every 5 seconds
|
||
|
|
||
|
function update ()
|
||
|
|
||
|
if ahrs:home_is_set() then
|
||
|
ahrs:set_home(ahrs:get_position())
|
||
|
gcs:send_text(0, "Home position reset")
|
||
|
end
|
||
|
|
||
|
return update, 5000
|
||
|
|
||
|
end
|
||
|
|
||
|
return update()
|