How to Add delay in Arming through Lua?

I want to add delay before arming the arduplane through button. Is it possible though Lua script?
If any one know this matter please help me out.

1 Like

Just modify the end of your lua:

function update()
  test_bindings() -- or whatever your lua is doing continuously 
  return update, repeater -- reschedules the loop

gcs:send_text(5, 'SCR:wait 20 s') -- 5 for finding the yellow text easily
return update, 20000