- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page