Exo x6a Operations Manual
revision 1
1st September 2013
cs.????
= currentstate, any variable on the status tab in the planner can be used.
Script =
options are
o
Script.Sleep(ms)
o
Script.ChangeParam(name,value)
o
Script.GetParam(name)
o
Script.ChangeMode(mode)
- same as displayed in mode setup screen „AUTO‟
o
Script.WaitFor(string,timeout)
o
Script.SendRC(channel,pwm,sendnow)
Here‟s an example, which tells a multicopter to do a roll in the air!
print 'Start Script'
for chan in range(1,9):
Script.SendRC(chan,1500,False)
Script.SendRC(3,Script.GetParam('RC3_MIN'),True)
Script.Sleep(5000) while cs.lat == 0: print „Waiting for GPS‟ Script.Sleep(1000) print „Got GPS‟
jo = 10 * 13 print jo Script.SendRC(3,1000,False) Script.SendRC(4,2000,True)
cs.messages.Clear() Script.WaitFor(„ARMING MOTORS‟,30000) Script.SendRC(4,1500,True)
print „Motors Armed!‟
Script.SendRC(3,1700,True) while cs.alt < 50: Script.Sleep(50)
Script.SendRC(5,2000,True) # acro
Script.SendRC(1,2000,False) # roll Script.SendRC(3,1370,True) # throttle while cs.roll > -45: #
top half 0 – 180 Script.Sleep(5) while cs.roll < -45: # -180 – -45 Script.Sleep(5)
Script.SendRC(5,1500,False) # stabilize Script.SendRC(1,1500,True) # level roll
Script.Sleep(2000) # 2 sec to stabilize Script.SendRC(3,1300,True) # throttle back to land
thro = 1350 # will decend
while cs.alt > 0.1: Script.Sleep(300)