mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
test(tecs): Require low errors after integrator
And add another future test (altitude step up currently still gives a bit too much airspeed error)
This commit is contained in:
1 parent
54352f36ee
commit
fbf962f72e
1 file changed
+7
@@ -476,10 +476,17 @@ TEST_F(TECSControlClosedLoopTest, AltitudeStepUpDefaultTuningPitchOffset)
|
||||
// Let integrator converge
|
||||
run(120.0f);
|
||||
|
||||
EXPECT_NEAR(_state.V, _V_sp, TRACKING_ERROR_TOL);
|
||||
EXPECT_NEAR(_state.h, _alt_sp, TRACKING_ERROR_TOL);
|
||||
|
||||
// Altitude step & time to converge
|
||||
resetSimStats();
|
||||
setAltitudeSetpoint(ALT_INIT + ALT_STEP);
|
||||
run(120.f);
|
||||
|
||||
// DISABLED: Only works after filter lag fix #29877
|
||||
// EXPECT_LT(_sim_stats.max_airspeed_error, TRACKING_ERROR_TOL) << "peak at t=" << _sim_stats.t_max_airspeed_error << " s";
|
||||
|
||||
// Reset stats to capture errors after convergence
|
||||
resetSimStats();
|
||||
run(60.0f);
|
||||
|
||||
Reference in new issue
Block a user