diff --git a/mavsdk/source/plugins/index.rst b/mavsdk/source/plugins/index.rst index f9837fdc..3ffc9492 100644 --- a/mavsdk/source/plugins/index.rst +++ b/mavsdk/source/plugins/index.rst @@ -14,6 +14,7 @@ Plugins gimbal info log_files + manual_control mission mission_raw mocap @@ -23,4 +24,3 @@ Plugins telemetry tune failure - manual_control diff --git a/mavsdk/system.py b/mavsdk/system.py index e871336d..c54b4697 100644 --- a/mavsdk/system.py +++ b/mavsdk/system.py @@ -12,6 +12,7 @@ from . import gimbal from . import info from . import log_files +from . import manual_control from . import mission from . import mission_raw from . import mocap @@ -82,6 +83,7 @@ async def _init_plugins(self, host, port): self._plugins["gimbal"] = gimbal.Gimbal(plugin_manager) self._plugins["info"] = info.Info(plugin_manager) self._plugins["log_files"] = log_files.LogFiles(plugin_manager) + self._plugins["manual_control"] = manual_control.ManualControl(plugin_manager) self._plugins["mission"] = mission.Mission(plugin_manager) self._plugins["mission_raw"] = mission_raw.MissionRaw(plugin_manager) self._plugins["mocap"] = mocap.Mocap(plugin_manager) @@ -156,6 +158,12 @@ def log_files(self) -> log_files.LogFiles: raise RuntimeError(self.error_uninitialized("LogFiles")) return self._plugins["log_files"] + @property + def manual_control(self) -> manual_control.ManualControl: + if "manual_control" not in self._plugins: + raise RuntimeError(self.error_uninitialized("ManualControl")) + return self._plugins["manual_control"] + @property def mission(self) -> mission.Mission: if "mission" not in self._plugins: