Skip to content

Commit

Permalink
Merge pull request #242 from mavlink/pr-add-manual-control
Browse files Browse the repository at this point in the history
mavsdk: add manual_control plugin
  • Loading branch information
JonasVautherin authored Aug 10, 2020
2 parents 19262b0 + e33b5d5 commit 7c33f2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mavsdk/source/plugins/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Plugins
gimbal
info
log_files
manual_control
mission
mission_raw
mocap
Expand All @@ -23,4 +24,3 @@ Plugins
telemetry
tune
failure
manual_control
8 changes: 8 additions & 0 deletions mavsdk/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7c33f2f

Please sign in to comment.