Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/guide/auto_mode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ attribute. The attribute is of type :py:class:`CommandSequence <dronekit.lib.Com
waypoints which make up the mission.

Waypoints are not downloaded from vehicle until :py:func:`download() <dronekit.lib.CommandSequence.download>` is called. The download is asynchronous;
use :py:func:`wait_valid() <dronekit.lib.CommandSequence.wait_valid>` to block your thread until the download is complete:
use :py:func:`wait_ready() <dronekit.lib.CommandSequence.wait_ready>` to block your thread until the download is complete:

.. code:: python

Expand All @@ -76,7 +76,7 @@ use :py:func:`wait_valid() <dronekit.lib.CommandSequence.wait_valid>` to block y
# Download the vehicle waypoints (commands). Wait until download is complete.
cmds = vehicle.commands
cmds.download()
cmds.wait_valid()
cmds.wait_ready()

.. note::

Expand Down Expand Up @@ -133,7 +133,7 @@ The supported commands for each vehicle are :ref:`linked above <auto_mode_suppor
# Get the set of commands from the vehicle
cmds = vehicle.commands
cmds.download()
cmds.wait_valid()
cmds.wait_ready()

# Create and add commands
cmd1=Command( 0, 0, 0, mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT, mavutil.mavlink.MAV_CMD_NAV_TAKEOFF, 0, 0, 0, 0, 0, 0, 0, 0, 10)
Expand Down Expand Up @@ -166,7 +166,7 @@ modify them as needed, then clear ``Vehicle.commands`` and upload the list as a
# Get the set of commands from the vehicle
cmds = vehicle.commands
cmds.download()
cmds.wait_valid()
cmds.wait_ready()

# Save the vehicle commands to a list
missionlist=[]
Expand Down Expand Up @@ -270,7 +270,7 @@ The implementation calls ``readmission()`` (below) to import the mission from a
clears the existing mission and uploads the new version.

Adding mission commands is discussed :ref:`here in the guide <auto_mode_adding_command>`.

.. code:: python

def upload_mission(aFileName):
Expand Down Expand Up @@ -370,7 +370,7 @@ adds them to a list. Downloading mission is discussed :ref:`in the guide <auto_m
missionlist=[]
cmds = vehicle.commands
cmds.download()
cmds.wait_valid()
cmds.wait_ready()
for cmd in cmds[1:]: #skip first item as it is home waypoint.
missionlist.append(cmd)
return missionlist
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/copter/guided_mode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ The *home location* is updated immediately in ArduPilot, but the change may not
# Reloads the home location in GCSs
cmds = vehicle.commands
cmds.download()
cmds.wait_valid()
cmds.wait_ready()
print " Home WP: %s" % cmds[0]

.. _guided_mode_copter_responses:
Expand Down
3 changes: 1 addition & 2 deletions docs/guide/vehicle_state_and_parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ The behaviour of :py:attr:`Vehicle.home_location <dronekit.lib.Vehicle.home_loca

cmds = vehicle.commands
cmds.download()
cmds.wait_valid()
cmds.wait_ready()
print " Home Location: %s" % vehicle.home_location

The returned value is a :py:class:`LocationGlobal <dronekit.lib.LocationGlobal>` object
Expand Down Expand Up @@ -266,7 +266,6 @@ At time of writing :py:class:`Parameters <dronekit.lib.Parameters>` does `not su




.. _api-information-known-issues:

Known issues
Expand Down
Loading