ekf2_test: test validity of local position when not at rest

At rest, the zero velocity update keeps the local position valid all the
time. Deactivate it to be able to test the validity checks
This commit is contained in:
bresch 2022-09-29 14:47:47 +02:00 committed by Daniel Agar
parent 1914053db2
commit 20b46ad33f
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ public:
_ekf->set_vehicle_at_rest(true);
_sensor_simulator.runSeconds(7);
// When at rest, the strong zero velocity update keeps the local position
// valid. Deactivate this to test the change of validity without zvup
_ekf->set_vehicle_at_rest(false);
}
// Use this method to clean up any memory, network etc. after each test