mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 20:13:35 +08:00
wip, minor bugfixes in fw att control
This commit is contained in:
@@ -90,7 +90,7 @@ float ECL_PitchController::control_attitude(float pitch_setpoint, float roll, fl
|
||||
float pitch_error = pitch_setpoint - pitch;
|
||||
|
||||
/* Apply P controller: rate setpoint from current error and time constant */
|
||||
float _rate_setpoint = pitch_error / _tc;
|
||||
_rate_setpoint = pitch_error / _tc;
|
||||
|
||||
/* add turn offset */
|
||||
_rate_setpoint += turn_offset;
|
||||
|
||||
Reference in New Issue
Block a user