mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 17:23:33 +08:00
Fix bug: pos gain used instead of vel gain
This commit is contained in:
committed by
Mathieu Bresciani
parent
2af2696b63
commit
673b309c45
+1
-1
@@ -454,7 +454,7 @@ void Ekf::calculateOutputStates()
|
||||
|
||||
// calculate a velocity correction that will be applied to the output state history
|
||||
// using a PD feedback tuned to a 5% overshoot
|
||||
const float vert_vel_correction = vert_vel_integ_err * pos_gain + vert_vel_err * pos_gain * 1.1f;
|
||||
const float vert_vel_correction = vert_vel_integ_err * pos_gain + vert_vel_err * vel_gain * 1.1f;
|
||||
|
||||
/*
|
||||
* Calculate corrections to be applied to vel and pos output state history.
|
||||
|
||||
Reference in New Issue
Block a user