Skip to content

Commit

Permalink
Changed default value to 30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HermanG05 committed Aug 25, 2024
1 parent 98b1199 commit 68a7c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mavlink/modules/flight_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_home_location(

return True, location

def upload_commands(self, commands: "list[dronekit.Command]", timeout: float = 10.0) -> bool:
def upload_commands(self, commands: "list[dronekit.Command]", timeout: float = 30.0) -> bool:
"""
Writes a mission to the drone from a list of commands (will overwrite any previous missions).
Expand Down Expand Up @@ -257,7 +257,7 @@ def get_flight_mode(self) -> "tuple[bool, drone_odometry.FlightMode | None]":
return True, drone_odometry.FlightMode.MOVING
return True, drone_odometry.FlightMode.MANUAL

def download_commands(self, timeout: float = 10.0) -> "tuple[bool, list[dronekit.Command]]":
def download_commands(self, timeout: float = 30.0) -> "tuple[bool, list[dronekit.Command]]":
"""
Downloads the current list of commands from the drone.
Expand Down

0 comments on commit 68a7c38

Please sign in to comment.