Skip to content

Commit 074433c

Browse files
Merge pull request mavlink#485 from mavlink/update-to-mavsdk-server-1.4.2
Bump mavsdk_server to 1.4.3
2 parents 253b1c8 + 3ba0f2a commit 074433c

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

MAVSDK_SERVER_VERSION

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

mavsdk/system.py

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
from . import action_server
1010
from . import calibration
1111
from . import camera
12-
from . import core
12+
from . import camera_server
1313
from . import component_information
1414
from . import component_information_server
15+
from . import core
1516
from . import failure
1617
from . import follow_me
1718
from . import ftp
@@ -27,6 +28,7 @@
2728
from . import offboard
2829
from . import param
2930
from . import param_server
31+
from . import rtk
3032
from . import server_utility
3133
from . import shell
3234
from . import telemetry
@@ -130,9 +132,10 @@ async def _init_plugins(self, host, port):
130132
self._plugins["action_server"] = action_server.ActionServer(plugin_manager)
131133
self._plugins["calibration"] = calibration.Calibration(plugin_manager)
132134
self._plugins["camera"] = camera.Camera(plugin_manager)
133-
self._plugins["core"] = core.Core(plugin_manager)
135+
self._plugins["camera_server"] = camera_server.CameraServer(plugin_manager)
134136
self._plugins["component_information"] = component_information.ComponentInformation(plugin_manager)
135137
self._plugins["component_information_server"] = component_information_server.ComponentInformationServer(plugin_manager)
138+
self._plugins["core"] = core.Core(plugin_manager)
136139
self._plugins["failure"] = failure.Failure(plugin_manager)
137140
self._plugins["follow_me"] = follow_me.FollowMe(plugin_manager)
138141
self._plugins["ftp"] = ftp.Ftp(plugin_manager)
@@ -148,6 +151,7 @@ async def _init_plugins(self, host, port):
148151
self._plugins["offboard"] = offboard.Offboard(plugin_manager)
149152
self._plugins["param"] = param.Param(plugin_manager)
150153
self._plugins["param_server"] = param_server.ParamServer(plugin_manager)
154+
self._plugins["rtk"] = rtk.Rtk(plugin_manager)
151155
self._plugins["server_utility"] = server_utility.ServerUtility(plugin_manager)
152156
self._plugins["shell"] = shell.Shell(plugin_manager)
153157
self._plugins["telemetry"] = telemetry.Telemetry(plugin_manager)
@@ -158,7 +162,7 @@ async def _init_plugins(self, host, port):
158162

159163
@staticmethod
160164
def error_uninitialized(plugin_name: str) -> str:
161-
return "{plugin_name} plugin has not been initialized!" \
165+
return "{plugin_name} plugin has not been initialized! " \
162166
"Did you run `System.connect()`?"
163167

164168
@property
@@ -186,10 +190,10 @@ def camera(self) -> camera.Camera:
186190
return self._plugins["camera"]
187191

188192
@property
189-
def core(self) -> core.Core:
190-
if "core" not in self._plugins:
191-
raise RuntimeError(self.error_uninitialized("Core"))
192-
return self._plugins["core"]
193+
def camera_server(self) -> camera_server.CameraServer:
194+
if "camera_server" not in self._plugins:
195+
raise RuntimeError(self.error_uninitialized("CameraServer"))
196+
return self._plugins["camera_server"]
193197

194198
@property
195199
def component_information(self) -> component_information.ComponentInformation:
@@ -203,6 +207,12 @@ def component_information_server(self) -> component_information_server.Component
203207
raise RuntimeError(self.error_uninitialized("ComponentInformationServer"))
204208
return self._plugins["component_informationServer"]
205209

210+
@property
211+
def core(self) -> core.Core:
212+
if "core" not in self._plugins:
213+
raise RuntimeError(self.error_uninitialized("Core"))
214+
return self._plugins["core"]
215+
206216
@property
207217
def failure(self) -> failure.Failure:
208218
if "failure" not in self._plugins:
@@ -293,6 +303,12 @@ def param_server(self) -> param_server.ParamServer:
293303
raise RuntimeError(self.error_uninitialized("ParamServer"))
294304
return self._plugins["param_server"]
295305

306+
@property
307+
def rtk(self) -> rtk.Rtk:
308+
if "rtk" not in self._plugins:
309+
raise RuntimeError(self.error_uninitialized("Rtk"))
310+
return self._plugins["rtk"]
311+
296312
@property
297313
def server_utility(self) -> server_utility.ServerUtility:
298314
if "server_utility" not in self._plugins:

proto

Submodule proto updated from b9a1c1a to 743aa1d

0 commit comments

Comments
 (0)