mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
test(mavsdk_tests): wait for the takeoff altitude in the geofence tests
The navigator reads parameter changes at most once per second. The altitude test sets two limits and then the takeoff altitude, so in a slow build the vehicle took off to the default 2.5 m and never reached the 10 m the test waits for (AddressSanitizer job). Wait one second before arming, as the control allocation tests do. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: jonas <jonspero@me.com>
This commit is contained in:
1 parent
3876e8860c
commit
a7c85d305c
1 file changed
+2
@@ -15,6 +15,8 @@ POSITION_TOLERANCE_M = 2.0
|
||||
|
||||
def take_off(tester: AutopilotTesterGeofence) -> None:
|
||||
tester.set_takeoff_altitude(TAKEOFF_ALTITUDE_M)
|
||||
# The navigator reads parameter changes at most once per second.
|
||||
tester.sleep_for(1)
|
||||
tester.arm()
|
||||
tester.takeoff()
|
||||
tester.wait_until_hovering()
|
||||
|
||||
Reference in new issue
Block a user