@title APM shooterV6
rem by Ben Harvey Benny_H88, modified version of 3dr_shoot.bas
while 1
do
k = get_usb_power
until k>0
if k < 5 then gosub "ch1down"
if k > 4 and k < 8 then gosub "ch1mid"
if k > 7 and k < 11 then gosub "ch1up"
if k > 10 then print "error"
wend
end
:ch1up
print "Shoot"
set_record(true)
while not get_mode() do
sleep(10)
shoot
return
:ch1mid
print "Wait"
sleep 500
return
:ch1down
print "Stowed"
set_record(false)
while get_mode() do
sleep(10)
sleep 1000
return
ok what am i doing wrong this time?
it wont take a photo, wont even do my prints, my guess is that i'm getting hung up in the while loops