Skip to content

Commit 7195967

Browse files
authored
Merge pull request #232 from mavlink/231-fix-enum-translation
Fix enum translation
2 parents 47b6d17 + beeadc4 commit 7195967

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+782
-1647
lines changed

mavsdk/action_pb2.py

Lines changed: 41 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mavsdk/action_pb2_grpc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2-
"""Client and server classes corresponding to protobuf-defined services."""
32
import grpc
43

54
from . import action_pb2 as action_dot_action__pb2

mavsdk/calibration_pb2.py

Lines changed: 27 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mavsdk/calibration_pb2_grpc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2-
"""Client and server classes corresponding to protobuf-defined services."""
32
import grpc
43

54
from . import calibration_pb2 as calibration_dot_calibration__pb2

mavsdk/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ async def set_mode(self, mode):
17051705

17061706
request = camera_pb2.SetModeRequest()
17071707

1708-
mode.translate_to_rpc(request.mode)
1708+
request.mode = mode.translate_to_rpc()
17091709

17101710

17111711
response = await self._stub.SetMode(request)

mavsdk/camera_pb2.py

Lines changed: 87 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mavsdk/camera_pb2_grpc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2-
"""Client and server classes corresponding to protobuf-defined services."""
32
import grpc
43

54
from . import camera_pb2 as camera_dot_camera__pb2

mavsdk/core_pb2.py

Lines changed: 7 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mavsdk/core_pb2_grpc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2-
"""Client and server classes corresponding to protobuf-defined services."""
32
import grpc
43

54
from . import core_pb2 as core_dot_core__pb2

0 commit comments

Comments
 (0)