From 3254390d5fde56c051e1098978b65fab33c5d68c Mon Sep 17 00:00:00 2001 From: sathak93 Date: Sun, 5 Nov 2023 06:24:21 +0530 Subject: [PATCH] fix mav service call and wp load --- mavros/mavros/cmd/mission.py | 6 +++--- mavros/mavros/ftp.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mavros/mavros/cmd/mission.py b/mavros/mavros/cmd/mission.py index 92293d512..2207caf7f 100644 --- a/mavros/mavros/cmd/mission.py +++ b/mavros/mavros/cmd/mission.py @@ -287,10 +287,10 @@ def call_push( return req = WaypointPush.Request( - waypoints=points.waypoints, + waypoints=points, start_index=start_index, ) - ret = accessor.cli_push(req) + ret = accessor.cli_push.call(req) if not ret.success: fault_echo("Request failed. Check mavros logs") @@ -347,7 +347,7 @@ def fix_wp0(topic: WaypointList): ) call_push( accessor=client.rallypoint, - points=mission_file.geofence, + points=mission_file.rally, start_index=0, no_send=no_rally, ) diff --git a/mavros/mavros/ftp.py b/mavros/mavros/ftp.py index 3f6420596..5d6e8bd2a 100644 --- a/mavros/mavros/ftp.py +++ b/mavros/mavros/ftp.py @@ -90,7 +90,7 @@ def close(self): return req = FileClose.Request(file_path=self.name) - ret = self._fm.cli_close(req) + ret = self._fm.cli_close.call(req) self.name = None _check_raise_errno(ret)