Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update proto and mavsdk_server 3.0.0 #746

Merged
merged 2 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion MAVSDK_SERVER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.12.10
v3.0.0
14 changes: 14 additions & 0 deletions examples/rtcm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python3

import asyncio
from mavsdk import System
from mavsdk.rtk import RtcmData

async def send_data(data):
drone = System()
await drone.connect()
await drone.rtk.send_rtcm_data(data)

if __name__ == '__main__':
rtcm_data = bytearray(b'\xd3\x00mCP\x00\x8c2\x16\x82\x00\x00,@\x88\x00\x00\x00\x00\x00 \x00\x00\x00~\x9c\xa4\x9a\x90\xa2\x8c\x00\x00\x01\xa7\xa2\x1e=gv\x8f\x1fq{\\x13_\xc9\xdf\x17\x02L$\xb6\xdd\x17\x9a.\xe8\xba\x94\x02U6^\xa2^\x08\xac\xf5\xf4\x1d\xcc\n\x9d\xe7\xeb\x04R\x15\x92\x93\xf9o\xf2\xc1\xb5-j\xba\xf12`@\r\x83\xc0\xe8B\x0f\x05\xec\x8c\xfc\xc4\x88l\xac\x7f\xf1\x1aR\xc2\xbc\x87')
asyncio.run(send_data(RtcmData(str(rtcm_data))))
54 changes: 0 additions & 54 deletions mavsdk/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,60 +800,6 @@ async def set_takeoff_altitude(self, altitude):
raise ActionError(result, "set_takeoff_altitude()", altitude)


async def get_maximum_speed(self):
"""
Get the vehicle maximum speed (in metres/second).

Returns
-------
speed : float
Maximum speed (in metres/second)

Raises
------
ActionError
If the request fails. The error contains the reason for the failure.
"""

request = action_pb2.GetMaximumSpeedRequest()
response = await self._stub.GetMaximumSpeed(request)


result = self._extract_result(response)

if result.result != ActionResult.Result.SUCCESS:
raise ActionError(result, "get_maximum_speed()")


return response.speed


async def set_maximum_speed(self, speed):
"""
Set vehicle maximum speed (in metres/second).

Parameters
----------
speed : float
Maximum speed (in metres/second)

Raises
------
ActionError
If the request fails. The error contains the reason for the failure.
"""

request = action_pb2.SetMaximumSpeedRequest()
request.speed = speed
response = await self._stub.SetMaximumSpeed(request)


result = self._extract_result(response)

if result.result != ActionResult.Result.SUCCESS:
raise ActionError(result, "set_maximum_speed()", speed)


async def get_return_to_launch_altitude(self):
"""
Get the return to launch minimum return altitude (in meters).
Expand Down
620 changes: 118 additions & 502 deletions mavsdk/action_pb2.py

Large diffs are not rendered by default.

469 changes: 315 additions & 154 deletions mavsdk/action_pb2_grpc.py

Large diffs are not rendered by default.

429 changes: 102 additions & 327 deletions mavsdk/action_server_pb2.py

Large diffs are not rendered by default.

Loading
Loading