diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-11 18:45:55 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-11 18:45:55 +0200 |
commit | 5581802f0f2f4bb34ac8c43b8aa9c1c555013758 (patch) | |
tree | 26193b3a511b01eb4ecba3706efb693eee8b4105 /src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp | |
parent | 7ec8fe8d61ea56b632d8b02bae5d847a3f031771 (diff) | |
download | px4-firmware-5581802f0f2f4bb34ac8c43b8aa9c1c555013758.tar.gz px4-firmware-5581802f0f2f4bb34ac8c43b8aa9c1c555013758.tar.bz2 px4-firmware-5581802f0f2f4bb34ac8c43b8aa9c1c555013758.zip |
ekf: Move dt inside class
Diffstat (limited to 'src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp')
-rw-r--r-- | src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp b/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp index d96ae5637..997ea1759 100644 --- a/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp +++ b/src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp @@ -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!"); |