Skip to content

Commit d2b3c5d

Browse files
committed
Changed default value to 30.0
1 parent 5c7386a commit d2b3c5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mavlink/modules/flight_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def get_home_location(
114114

115115
return True, location
116116

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

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

0 commit comments

Comments
 (0)