mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 01:13:34 +08:00
Update src/modules/commander/failsafe/failsafe_test.cpp
Co-authored-by: Matthias Grob <maetugr@gmail.com>
This commit is contained in:
co-authored by
Matthias Grob
parent
ff4c3c07d4
commit
b29444b8d5
@@ -638,7 +638,7 @@ TEST_F(FailsafeTest, battery_unhealthy_during_spoolup)
|
||||
failsafe.updateArmingState(time, true);
|
||||
|
||||
// Test 1: Battery unhealthy during spoolup phase (within 2 seconds of arming)
|
||||
time += 500_ms; // 0.5 seconds after arming - still in spoolup
|
||||
time += spoolup_time - 100_ms; // still in spoolup
|
||||
failsafe_flags.battery_unhealthy = true;
|
||||
uint8_t updated_user_intented_mode = failsafe.update(time, state, false, false, failsafe_flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user