Skip to content

Commit 0a2890d

Browse files
authored
Merge pull request #542 from mavlink/pr-update-mavsdk-server
Update mavsdk_server version, bump to Python 3.7+
2 parents c493e52 + 87a7aef commit 0a2890d

35 files changed

+77
-179
lines changed

MAVSDK_SERVER_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.4.4
1+
v1.4.10

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Python wrapper is based on a gRPC client communicating with the gRPC server
99

1010
## Important Notes
1111

12-
- Python 3.6+ is required (because the wrapper is based on [asyncio](https://docs.python.org/3.7/library/asyncio.html)).
12+
- Python 3.7+ is required (because the wrapper is based on [asyncio](https://docs.python.org/3.7/library/asyncio.html)).
1313
- You may need to run `pip3` instead of `pip` and `python3` instead of `python`, depending of your system defaults.
1414
- Auterion has a [Getting started with MAVSDK-Python](https://auterion.com/getting-started-with-mavsdk-python/) guide if you're a beginner and not sure where to start.
1515

examples/calibration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ async def run():
3131

3232

3333
if __name__ == "__main__":
34-
loop = asyncio.get_event_loop()
35-
loop.run_until_complete(run())
34+
# Run the asyncio loop
35+
asyncio.run(run())

examples/camera.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ async def print_status(drone):
5656

5757

5858
if __name__ == "__main__":
59-
loop = asyncio.get_event_loop()
60-
loop.run_until_complete(run())
59+
# Run the asyncio loop
60+
asyncio.run(run())

examples/camera_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,5 @@ async def make_user_choose_option_range(possible_options):
185185

186186

187187
if __name__ == "__main__":
188-
loop = asyncio.get_event_loop()
189-
loop.run_until_complete(run())
188+
# Run the asyncio loop
189+
asyncio.run(run())

examples/failure_injection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ async def run():
5959
await drone.param.set_param_int('SYS_FAILURE_EN', 0)
6060

6161
if __name__ == "__main__":
62-
loop = asyncio.get_event_loop()
63-
loop.run_until_complete(run())
62+
# Run the asyncio loop
63+
asyncio.run(run())

examples/firmware_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ async def run():
1919

2020

2121
if __name__ == "__main__":
22-
loop = asyncio.get_event_loop()
23-
loop.run_until_complete(run())
22+
# Run the asyncio loop
23+
asyncio.run(run())

examples/follow_me_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ async def fly_drone():
6464
await drone.action.land()
6565

6666
if __name__ == "__main__":
67-
loop = asyncio.get_event_loop()
68-
loop.run_until_complete(fly_drone())
67+
# Run the asyncio loop
68+
asyncio.run(run())

examples/geofence.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
This example shows how to use the geofence plugin.
99
10-
Note: The behavior when your vehicle hits the geofence is NOT configured in this example.
10+
Note: The behavior when your vehicle hits the geofence is NOT configured in this example.
1111
1212
"""
1313

@@ -51,5 +51,5 @@ async def run():
5151

5252

5353
if __name__ == "__main__":
54-
loop = asyncio.get_event_loop()
55-
loop.run_until_complete(run())
54+
# Run the asyncio loop
55+
asyncio.run(run())

examples/gimbal.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,5 @@ async def print_gimbal_position(drone):
8383

8484

8585
if __name__ == "__main__":
86-
# Start the main function
87-
loop = asyncio.get_event_loop()
88-
loop.run_until_complete(run())
86+
# Run the asyncio loop
87+
asyncio.run(run())

0 commit comments

Comments
 (0)