Skip to content

Commit 4bb2d7c

Browse files
committed
Update quick start guide for start_default
1 parent dd8d2ce commit 4bb2d7c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/guide/quick_start.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,16 @@ we then use to query the attributes.
4646
.. code:: python
4747
4848
print "Start simulator (SITL)"
49-
from dronekit_sitl import SITL
50-
sitl = SITL()
51-
sitl.download('copter', '3.3', verbose=True)
52-
sitl_args = ['-I0', '--model', 'quad', '--home=-35.363261,149.165230,584,353']
53-
sitl.launch(sitl_args, await_ready=True, restart=True)
49+
import dronekit_sitl
50+
sitl = dronekit_sitl.start_default()
51+
connection_string = sitl.connection_string()
5452
5553
# Import DroneKit-Python
5654
from dronekit import connect, VehicleMode
5755
5856
# Connect to the Vehicle.
59-
print "Connecting to vehicle on: 'tcp:127.0.0.1:5760'"
60-
vehicle = connect('tcp:127.0.0.1:5760', wait_ready=True)
57+
print("Connecting to vehicle on: %s" % (connection_string,))
58+
vehicle = connect(connection_string, wait_ready=True)
6159
6260
# Get some vehicle attributes (state)
6361
print "Get some vehicle attribute values:"

0 commit comments

Comments
 (0)