mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
autotest: correct wait_groundspeed method
This commit is contained in:
parent
dc312260de
commit
fdae5f3ccc
@ -5442,9 +5442,9 @@ class AutoTest(ABC):
|
|||||||
|
|
||||||
self.wait_and_maintain(
|
self.wait_and_maintain(
|
||||||
value_name="Groundspeed",
|
value_name="Groundspeed",
|
||||||
target=speed_min,
|
target=(speed_min+speed_max)/2,
|
||||||
current_value_getter=lambda: get_groundspeed(timeout),
|
current_value_getter=lambda: get_groundspeed(timeout),
|
||||||
accuracy=(speed_max - speed_min),
|
accuracy=(speed_max - speed_min)/2,
|
||||||
validator=lambda value2, target2: validator(value2, target2),
|
validator=lambda value2, target2: validator(value2, target2),
|
||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
**kwargs
|
**kwargs
|
||||||
|
Loading…
Reference in New Issue
Block a user