Skip to content
Closed
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
2 changes: 1 addition & 1 deletion MAVSDK_SERVER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.0.5
v4.2.1
4 changes: 2 additions & 2 deletions mavsdk/action_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions mavsdk/action_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from . import action_pb2 as action_dot_action__pb2

GRPC_GENERATED_VERSION = "1.75.0"
GRPC_GENERATED_VERSION = "1.85.3"
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand All @@ -22,14 +22,14 @@
if _version_not_supported:
raise RuntimeError(
f"The grpc package installed is at version {GRPC_VERSION},"
+ f" but the generated code in action/action_pb2_grpc.py depends on"
+ " but the generated code in action/action_pb2_grpc.py depends on"
+ f" grpcio>={GRPC_GENERATED_VERSION}."
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."
)


class ActionServiceStub(object):
class ActionServiceStub:
"""Enable simple actions such as arming, taking off, and landing."""

def __init__(self, channel):
Expand Down Expand Up @@ -190,7 +190,7 @@ def __init__(self, channel):
)


class ActionServiceServicer(object):
class ActionServiceServicer:
"""Enable simple actions such as arming, taking off, and landing."""

def Arm(self, request, context):
Expand Down Expand Up @@ -607,7 +607,7 @@ def add_ActionServiceServicer_to_server(servicer, server):


# This class is part of an EXPERIMENTAL API.
class ActionService(object):
class ActionService:
"""Enable simple actions such as arming, taking off, and landing."""

@staticmethod
Expand Down
13 changes: 8 additions & 5 deletions mavsdk/action_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,9 @@ class ActionServer(AsyncBase):
"""
Provide vehicle actions (as a server) such as arming, taking off, and landing.

The flight mode API is deprecated, use the ModesServer plugin instead. Once
ModesServer has modes set, mode change requests are left to it.

Generated by dcsdkgen - MAVSDK ActionServer API
"""

Expand Down Expand Up @@ -570,7 +573,7 @@ async def arm_disarm(self):

async def flight_mode_change(self):
"""
Subscribe to DO_SET_MODE
Subscribe to DO_SET_MODE (deprecated, use the ModesServer plugin instead)

Yields
-------
Expand Down Expand Up @@ -880,7 +883,7 @@ async def set_disarmable(self, disarmable, force_disarmable):

async def set_allowable_flight_modes(self, flight_modes):
"""
Set which modes the vehicle can transition to (Manual always allowed)
Set which modes the vehicle can transition to (Manual always allowed) (deprecated, use the ModesServer plugin instead)

Parameters
----------
Expand All @@ -907,7 +910,7 @@ async def set_allowable_flight_modes(self, flight_modes):

async def get_allowable_flight_modes(self):
"""
Get which modes the vehicle can transition to (Manual always allowed)
Get which modes the vehicle can transition to (Manual always allowed) (deprecated, use the ModesServer plugin instead)

Returns
-------
Expand Down Expand Up @@ -947,7 +950,7 @@ async def set_armed_state(self, is_armed):

async def set_flight_mode(self, flight_mode):
"""
Set/override the flight mode of the vehicle directly, and notify subscribers
Set/override the flight mode of the vehicle directly, and notify subscribers (deprecated, use the ModesServer plugin instead)

Parameters
----------
Expand All @@ -973,7 +976,7 @@ async def set_flight_mode(self, flight_mode):

async def set_flight_mode_internal(self, flight_mode):
"""
Set/override the flight mode of the vehicle directly, and *do not* notify subscribers
Set/override the flight mode of the vehicle directly, and *do not* notify subscribers (deprecated, use the ModesServer plugin instead)

Parameters
----------
Expand Down
18 changes: 9 additions & 9 deletions mavsdk/action_server_pb2.py

Large diffs are not rendered by default.

38 changes: 25 additions & 13 deletions mavsdk/action_server_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from . import action_server_pb2 as action__server_dot_action__server__pb2

GRPC_GENERATED_VERSION = "1.75.0"
GRPC_GENERATED_VERSION = "1.85.3"
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand All @@ -22,15 +22,19 @@
if _version_not_supported:
raise RuntimeError(
f"The grpc package installed is at version {GRPC_VERSION},"
+ f" but the generated code in action_server/action_server_pb2_grpc.py depends on"
+ " but the generated code in action_server/action_server_pb2_grpc.py depends on"
+ f" grpcio>={GRPC_GENERATED_VERSION}."
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."
)


class ActionServerServiceStub(object):
"""Provide vehicle actions (as a server) such as arming, taking off, and landing."""
class ActionServerServiceStub:
"""Provide vehicle actions (as a server) such as arming, taking off, and landing.

The flight mode API is deprecated, use the ModesServer plugin instead. Once
ModesServer has modes set, mode change requests are left to it.
"""

def __init__(self, channel):
"""Constructor.
Expand Down Expand Up @@ -130,8 +134,12 @@ def __init__(self, channel):
)


class ActionServerServiceServicer(object):
"""Provide vehicle actions (as a server) such as arming, taking off, and landing."""
class ActionServerServiceServicer:
"""Provide vehicle actions (as a server) such as arming, taking off, and landing.

The flight mode API is deprecated, use the ModesServer plugin instead. Once
ModesServer has modes set, mode change requests are left to it.
"""

def SubscribeArmDisarm(self, request, context):
"""Subscribe to ARM/DISARM commands"""
Expand All @@ -140,7 +148,7 @@ def SubscribeArmDisarm(self, request, context):
raise NotImplementedError("Method not implemented!")

def SubscribeFlightModeChange(self, request, context):
"""Subscribe to DO_SET_MODE"""
"""Subscribe to DO_SET_MODE (deprecated, use the ModesServer plugin instead)"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
Expand Down Expand Up @@ -194,13 +202,13 @@ def SetDisarmable(self, request, context):
raise NotImplementedError("Method not implemented!")

def SetAllowableFlightModes(self, request, context):
"""Set which modes the vehicle can transition to (Manual always allowed)"""
"""Set which modes the vehicle can transition to (Manual always allowed) (deprecated, use the ModesServer plugin instead)"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")

def GetAllowableFlightModes(self, request, context):
"""Get which modes the vehicle can transition to (Manual always allowed)"""
"""Get which modes the vehicle can transition to (Manual always allowed) (deprecated, use the ModesServer plugin instead)"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
Expand All @@ -212,13 +220,13 @@ def SetArmedState(self, request, context):
raise NotImplementedError("Method not implemented!")

def SetFlightMode(self, request, context):
"""Set/override the flight mode of the vehicle directly, and notify subscribers"""
"""Set/override the flight mode of the vehicle directly, and notify subscribers (deprecated, use the ModesServer plugin instead)"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")

def SetFlightModeInternal(self, request, context):
"""Set/override the flight mode of the vehicle directly, and *do not* notify subscribers"""
"""Set/override the flight mode of the vehicle directly, and *do not* notify subscribers (deprecated, use the ModesServer plugin instead)"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
Expand Down Expand Up @@ -312,8 +320,12 @@ def add_ActionServerServiceServicer_to_server(servicer, server):


# This class is part of an EXPERIMENTAL API.
class ActionServerService(object):
"""Provide vehicle actions (as a server) such as arming, taking off, and landing."""
class ActionServerService:
"""Provide vehicle actions (as a server) such as arming, taking off, and landing.

The flight mode API is deprecated, use the ModesServer plugin instead. Once
ModesServer has modes set, mode change requests are left to it.
"""

@staticmethod
def SubscribeArmDisarm(
Expand Down
6 changes: 3 additions & 3 deletions mavsdk/arm_authorizer_server_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions mavsdk/arm_authorizer_server_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
arm_authorizer_server_pb2 as arm__authorizer__server_dot_arm__authorizer__server__pb2,
)

GRPC_GENERATED_VERSION = "1.75.0"
GRPC_GENERATED_VERSION = "1.85.3"
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand All @@ -24,14 +24,14 @@
if _version_not_supported:
raise RuntimeError(
f"The grpc package installed is at version {GRPC_VERSION},"
+ f" but the generated code in arm_authorizer_server/arm_authorizer_server_pb2_grpc.py depends on"
+ " but the generated code in arm_authorizer_server/arm_authorizer_server_pb2_grpc.py depends on"
+ f" grpcio>={GRPC_GENERATED_VERSION}."
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."
)


class ArmAuthorizerServerServiceStub(object):
class ArmAuthorizerServerServiceStub:
"""Use arm authorization."""

def __init__(self, channel):
Expand Down Expand Up @@ -60,7 +60,7 @@ def __init__(self, channel):
)


class ArmAuthorizerServerServiceServicer(object):
class ArmAuthorizerServerServiceServicer:
"""Use arm authorization."""

def SubscribeArmAuthorization(self, request, context):
Expand Down Expand Up @@ -112,7 +112,7 @@ def add_ArmAuthorizerServerServiceServicer_to_server(servicer, server):


# This class is part of an EXPERIMENTAL API.
class ArmAuthorizerServerService(object):
class ArmAuthorizerServerService:
"""Use arm authorization."""

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions mavsdk/calibration_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions mavsdk/calibration_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from . import calibration_pb2 as calibration_dot_calibration__pb2

GRPC_GENERATED_VERSION = "1.75.0"
GRPC_GENERATED_VERSION = "1.85.3"
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand All @@ -22,14 +22,14 @@
if _version_not_supported:
raise RuntimeError(
f"The grpc package installed is at version {GRPC_VERSION},"
+ f" but the generated code in calibration/calibration_pb2_grpc.py depends on"
+ " but the generated code in calibration/calibration_pb2_grpc.py depends on"
+ f" grpcio>={GRPC_GENERATED_VERSION}."
+ f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"
+ f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."
)


class CalibrationServiceStub(object):
class CalibrationServiceStub:
"""Enable to calibrate sensors of a drone such as gyro, accelerometer, and magnetometer."""

def __init__(self, channel):
Expand Down Expand Up @@ -76,7 +76,7 @@ def __init__(self, channel):
)


class CalibrationServiceServicer(object):
class CalibrationServiceServicer:
"""Enable to calibrate sensors of a drone such as gyro, accelerometer, and magnetometer."""

def SubscribeCalibrateGyro(self, request, context):
Expand Down Expand Up @@ -159,7 +159,7 @@ def add_CalibrationServiceServicer_to_server(servicer, server):


# This class is part of an EXPERIMENTAL API.
class CalibrationService(object):
class CalibrationService:
"""Enable to calibrate sensors of a drone such as gyro, accelerometer, and magnetometer."""

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions mavsdk/camera_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading