Skip to content

Commit

Permalink
Enable TelemetryServer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 committed Feb 16, 2022
1 parent 9bee352 commit f8d6e20
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mavsdk/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from . import server_utility
from . import shell
from . import telemetry
from . import telemetry_server
from . import tracking_server
from . import transponder
from . import tune
Expand Down Expand Up @@ -137,9 +138,10 @@ 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["server_utility"] = server_utility.ServerUtility(plugin_manager)
self._plugins["shell"] = shell.Shell(plugin_manager)
self._plugins["telemetry"] = telemetry.Telemetry(plugin_manager)
self._plugins["telemetry_server"] = telemetry_server.TelemetryServer(plugin_manager)
self._plugins["tracking_server"] = tracking_server.TrackingServer(plugin_manager)
self._plugins["transponder"] = transponder.Transponder(plugin_manager)
self._plugins["tune"] = tune.Tune(plugin_manager)
Expand Down Expand Up @@ -252,7 +254,7 @@ def param(self) -> param.Param:
return self._plugins["param"]

@property
def server_utility(self) -> server_utility.Shell:
def server_utility(self) -> server_utility.ServerUtility:
if "server_utility" not in self._plugins:
raise RuntimeError(self.error_uninitialized("ServerUtility"))
return self._plugins["server_utility"]
Expand All @@ -269,6 +271,12 @@ def telemetry(self) -> telemetry.Telemetry:
raise RuntimeError(self.error_uninitialized("Telemetry"))
return self._plugins["telemetry"]

@property
def telemetry_server(self) -> telemetry_server.TelemetryServer:
if "telemetry_server" not in self._plugins:
raise RuntimeError(self.error_uninitialized("TelemetryServer"))
return self._plugins["telemetry_server"]

@property
def tracking_server(self) -> tracking_server.TrackingServer:
if "tracking_server" not in self._plugins:
Expand Down

0 comments on commit f8d6e20

Please sign in to comment.