Hello, 

   I'm currently working with python scripts and trying to produce a certain input pattern at different servos of my plane during flight. I'm successful in doing that. However I'm facing a problem that once this script is executed at the mission planner, I lose the control of RC transmitter and it goes into Failsafe Mode, till the time this script is being executed... 


import sys
sys.path.append(r"c:\Python34\Lib\site-packages")
sys.path.append(r"c:\Python34\Lib")
#import serial, os, threading


print 'Start Script'
print 'HEllo'
for chan in range(1,9):
Script.SendRC(chan,1500,False)
Script.SendRC(3,Script.GetParam('RC3_MIN'),True)


######LOOP#########
Script.SendRC(8,1700,True) # Manual mode
Script.ChangeMode('CRUISE')
Script.SendRC(2,1500,True)
Script.Sleep(1000)
Script.SendRC(2,1800,True)
Script.Sleep(3000)
Script.SendRC(2,1200,True)
Script.Sleep(2000)
Script.SendRC(2,1800,True) 
Script.Sleep(1000)
Script.SendRC(2,1200,True) 
Script.Sleep(1000)
Script.SendRC(2,1500,True)  

Script.Sleep(2000) # 2 sec to stabalise

  Is there a way to take back the control of RC tx and how to avoid this Failsafe Mode because it could make my plane crash... 

  Any help please..........

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity