Skip to content

Commit

Permalink
fix mav service call and wp load
Browse files Browse the repository at this point in the history
  • Loading branch information
sathak93 committed Nov 5, 2023
1 parent 97cf3c6 commit 3254390
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mavros/mavros/cmd/mission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion mavros/mavros/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3254390

Please sign in to comment.