You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mavsdk/source/index.rst
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,12 +32,15 @@ Install using pip from PyPi
32
32
33
33
To install simply run:
34
34
35
+
.. code:: bash
36
+
35
37
pip3 install mavsdk
36
38
37
39
38
40
The package contains ``mavsdk_server`` already (previously called "backend"), which is started automatically when connecting (e.g. ``await drone.connect()``). Have a look at the examples to see it used in practice. It will be something like:
39
41
40
42
.. code:: python
43
+
41
44
python
42
45
from mavsdk import System
43
46
...
@@ -53,6 +56,7 @@ Run the examples
53
56
Once the package has been installed, the examples can be run:
54
57
55
58
.. code:: bash
59
+
56
60
examples/takeoff_and_land.py
57
61
58
62
The examples assume that the embedded ``mavsdk_server`` binary can be run. In some cases (e.g. on Raspberry Pi), it may be necessary to run ``mavsdk_server`` manually, and therefore to set ``mavsdk_server_address='localhost'`` as described above.
@@ -65,6 +69,7 @@ In order to get more debugging information, it is possible to run the mavsdk_ser
65
69
For this case, let's assume the example was like this:
0 commit comments