diff options
author | Julian Oes <julian@oes.ch> | 2014-04-21 22:48:12 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-04-21 22:48:12 +0200 |
commit | d41a01483a9a1e61c12492501bf975021595b3a6 (patch) | |
tree | 92b8427a480474a883bc1dbf9fde12d08d85289b /src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp | |
parent | c3c0328e8bb9211580dbe5a52ecb23e0452cb402 (diff) | |
download | px4-firmware-d41a01483a9a1e61c12492501bf975021595b3a6.tar.gz px4-firmware-d41a01483a9a1e61c12492501bf975021595b3a6.tar.bz2 px4-firmware-d41a01483a9a1e61c12492501bf975021595b3a6.zip |
fw_att_pos_estimator: lines were commented out by mistake
Diffstat (limited to 'src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp')
-rw-r--r-- | src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp index a61fff942..32a6029fe 100644 --- a/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp +++ b/src/modules/fw_att_pos_estimator/fw_att_pos_estimator_main.cpp @@ -1035,8 +1035,8 @@ FixedwingEstimator::task_main() _local_pos.z_global = false; _local_pos.yaw = _att.yaw; - // _velocity_xy_filtered = 0.9f*_velocity_xy_filtered + 0.1f*sqrtf(_local_pos.vx*_local_pos.vx + _local_pos.vy*_local_pos.vy); - // _velocity_z_filtered = 0.9f*_velocity_z_filtered + 0.1f*fabsf(_local_pos.vz); + _velocity_xy_filtered = 0.9f*_velocity_xy_filtered + 0.1f*sqrtf(_local_pos.vx*_local_pos.vx + _local_pos.vy*_local_pos.vy); + _velocity_z_filtered = 0.9f*_velocity_z_filtered + 0.1f*fabsf(_local_pos.vz); /* crude land detector for fixedwing only, |