Skip to content

Commit

Permalink
Addressed PR comments 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mgupta27 committed Feb 13, 2024
1 parent ca67455 commit 5b458e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions mavlink/modules/flight_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ def upload_land_command(self, latitude: float, longitude: float) -> bool:
def is_drone_destination_final_waypoint(self) -> "tuple[bool, bool | None]":
"""
Returns if the drone's destination is the final waypoint in the mission.
Returns
-------
tuple[bool, bool | None]
The first boolean in the tuple represents if retrieving the mission
information is successful.
- If it is not successful, the second parameter will be None.
- If it is successful, the second parameter will be a boolean
indicating if the drone's destination is set to the final
waypoint in the mission.
"""
waypoint_count = self.drone.commands.count
current_waypoint = self.drone.commands.next
Expand Down
4 changes: 2 additions & 2 deletions mavlink/test_mission_ended.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def upload_mission(controller: flight_controller.FlightController,
----------
controller: "flight_controller.FlightController"
waypoints: "list[tuple[float, float, float]]"
The three values in the tuple represent latitude (degrees),
longitude (degrees), and altitude (metres) respectively.
The three values in the tuple represent latitude (decimal degrees),
longitude (decimal degrees), and altitude (metres) respectively.
Returns
-------
Expand Down

0 comments on commit 5b458e9

Please sign in to comment.