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)