mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
fix(mavsdk_tests): don't wait for Land mode on mission GPS loss (#28017)
Since #27918 a blind descend reports the distinct Descend flight mode instead of masquerading as Land. MAVSDK v3.17.1 has no Descend mode, so wait_for_flight_mode(Land) timed out and SITL failed on main. Losing GPS in SIH removes all horizontal position aiding, so the vehicle always blind-descends after the mission GPS loss; a controlled Land is never entered. The test already waits for the automatic disarm after landing, which is the meaningful check. Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
This commit is contained in:
@@ -298,8 +298,8 @@ void AutopilotTester::execute_mission_and_lose_gps()
|
||||
|
||||
CHECK(_failure->inject(Failure::FailureUnit::SensorGps, Failure::FailureType::Off, 0) == Failure::Result::Success);
|
||||
|
||||
// We expect that a blind land is performed.
|
||||
wait_for_flight_mode(Telemetry::FlightMode::Land, std::chrono::seconds(30));
|
||||
// With no position aiding left, a blind descend is performed. MAVSDK has no
|
||||
// Descend flight mode, so the caller just waits for the disarm after landing.
|
||||
}
|
||||
|
||||
void AutopilotTester::execute_mission_and_lose_mag()
|
||||
|
||||
Reference in New Issue
Block a user