def autopilot(self):
# Make sure the payload release is in the closed position
self.lock_payload()
# TODO use GPS Fix = 3D before allowing continue?
# TODO check if safety switch activated?
while not self.connection.location.global_relative_frame.alt and not self.stop():
self.log( "No GPS signal yet" )
time.sleep(1)
while not self.stop():
if not self.released:
time.sleep(3)
logging.shutdown()
self.connection.close()
评论列表
文章目录