diff --git a/mavsdk/system.py b/mavsdk/system.py index f9b0f534..b5a939b4 100644 --- a/mavsdk/system.py +++ b/mavsdk/system.py @@ -22,6 +22,7 @@ from . import mocap from . import offboard from . import param +from . import server_utility from . import shell from . import telemetry from . import tracking_server @@ -136,6 +137,7 @@ async def _init_plugins(self, host, port): self._plugins["mocap"] = mocap.Mocap(plugin_manager) self._plugins["offboard"] = offboard.Offboard(plugin_manager) self._plugins["param"] = param.Param(plugin_manager) + self._plugins["server_utility"] = server_utility.Shell(plugin_manager) self._plugins["shell"] = shell.Shell(plugin_manager) self._plugins["telemetry"] = telemetry.Telemetry(plugin_manager) self._plugins["tracking_server"] = tracking_server.TrackingServer(plugin_manager) @@ -249,6 +251,12 @@ def param(self) -> param.Param: raise RuntimeError(self.error_uninitialized("Param")) return self._plugins["param"] + @property + def server_utility(self) -> server_utility.Shell: + if "server_utility" not in self._plugins: + raise RuntimeError(self.error_uninitialized("ServerUtility")) + return self._plugins["server_utility"] + @property def shell(self) -> shell.Shell: if "shell" not in self._plugins: