From 66e05fd379367e3f38ba5dd57060a05ab0a89421 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 18 Dec 2019 16:51:17 +0100 Subject: [PATCH] Update to v0.23.0 server and set default args With the new version we now need to specify the port of the grpc server. --- MAVSDK_SERVER_VERSION | 2 +- mavsdk/system.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MAVSDK_SERVER_VERSION b/MAVSDK_SERVER_VERSION index 4f279437..0c2a959e 100644 --- a/MAVSDK_SERVER_VERSION +++ b/MAVSDK_SERVER_VERSION @@ -1 +1 @@ -v0.22.0 +v0.23.0 diff --git a/mavsdk/system.py b/mavsdk/system.py index ea33283b..eae9e8ff 100644 --- a/mavsdk/system.py +++ b/mavsdk/system.py @@ -140,7 +140,7 @@ def shell(self) -> Shell: if "shell" not in self._plugins: raise RuntimeError("Shell plugin has not been initialized! Did you run `System.connect()`?") return self._plugins["shell"] - + @property def mocap(self) -> Mocap: if "mocap" not in self._plugins: @@ -163,7 +163,7 @@ def _start_mavsdk_server(system_address=None): from importlib_resources import path with path(bin, 'mavsdk_server') as backend: - bin_path_and_args = [os.fspath(backend)] + bin_path_and_args = [os.fspath(backend), "-p", "50051"] if system_address: bin_path_and_args.append(system_address) p = subprocess.Popen(bin_path_and_args,