mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 23:10:35 +08:00
ekf: Move dt inside class
This commit is contained in:
@@ -504,14 +504,13 @@ FixedwingEstimator::task_main_trampoline(int argc, char *argv[])
|
||||
estimator::g_estimator->task_main();
|
||||
}
|
||||
|
||||
float dt = 0.0f; // time lapsed since last covariance prediction
|
||||
|
||||
void
|
||||
FixedwingEstimator::task_main()
|
||||
{
|
||||
_mavlink_fd = open(MAVLINK_LOG_DEVICE, 0);
|
||||
|
||||
_ekf = new AttPosEKF();
|
||||
float dt = 0.0f; // time lapsed since last covariance prediction
|
||||
|
||||
if (!_ekf) {
|
||||
errx(1, "failed allocating EKF filter - out of RAM!");
|
||||
|
||||
Reference in New Issue
Block a user