I have simple script to change servo output to camera to start recording, but script fails to start…
function update()
local armed = arming:is_armed()
if armed then
SRV_Channels:set_output_pwm(94, 2000)
else
SRV_Channels:set_output_pwm(94, 1001)
end
return update, 2000
endreturn update()
Any idea why?