mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Tools: arducopter.py: add tolerance to takeoff alt
This commit is contained in:
parent
2f9f793ccf
commit
303e40f578
@ -160,7 +160,7 @@ class AutoTestCopter(AutoTest):
|
||||
m = self.mav.recv_match(type='GLOBAL_POSITION_INT', blocking=True)
|
||||
alt = m.relative_alt / 1000.0 # mm -> m
|
||||
if alt < alt_min:
|
||||
self.wait_altitude(alt_min,
|
||||
self.wait_altitude(alt_min - 1,
|
||||
(alt_min + 5),
|
||||
relative=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user