Community
cancel
Showing results for 
Search instead for 
Did you mean: 
BHU6
Beginner
950 Views

RTF didn't Takeoff with the Example: Simple Go To (Copter)

Hi,

I used the example: http://python.dronekit.io/examples/simple_goto.html http://python.dronekit.io/examples/simple_goto.html to control the RTF.

But it didn't work.

1) As following shows, the RTF will wait forever.

So, I take off the lines:

while not vehicle.is_armable:

print " Waiting for vehicle to initialise..."

time.sleep(1)

Then it can arm.

Then, It has a new problem: it has not the "GUIDED" mode and didn't take off.

What's the problem?

#

# !/usr/bin/env python

# -*- coding: utf-8 -*-

"""

© Copyright 2015-2016, 3D Robotics.

simple_goto.py: GUIDED mode "simple goto" example (Copter Only)

Demonstrates how to arm and takeoff in Copter and how to navigate to points using Vehicle.simple_goto.

Full documentation is provided at http://python.dronekit.io/examples/simple_goto.html

"""

from dronekit import connect, VehicleMode, LocationGlobalRelative

import time

# Set up option parsing to get connection string

import argparse

parser = argparse.ArgumentParser(description='Commands vehicle using vehicle.simple_goto.')

parser.add_argument('--connect',

help="Vehicle connection target string. If not specified, SITL automatically started and used.")

args = parser.parse_args()

connection_string = args.connect

sitl = None

# Start SITL if no connection string specified

if not connection_string:

import dronekit_sitl

sitl = dronekit_sitl.start_default()

connection_string <span class="o" style="fon...

0 Kudos
1 Reply
idata
Community Manager
65 Views

Hello philipbinbin,

 

 

Thank you for your interest in the Intel® Aero Ready to Fly Drone.

 

 

Since the issue you are experiencing is related to a code provided by 3DR DroneKit, you should contact them in order to get the adequate support.

 

 

Please follow this link to contact the corresponding community https://discuss.dronekit.io/c/python.

 

 

If you have any other question, don't hesitate to contact us.

 

 

Have a nice day.

 

 

Regards,

 

Andres V.
Reply