Browse Source

APM_Control: fixed use of configured() vs configured_in_storage()

apm_2208
Andrew Tridgell 3 years ago committed by Peter Barker
parent
commit
aafec1fbe7
  1. 2
      libraries/APM_Control/AP_PitchController.cpp
  2. 2
      libraries/APM_Control/AP_RollController.cpp

2
libraries/APM_Control/AP_PitchController.cpp

@ -356,7 +356,7 @@ void AP_PitchController::reset_I() @@ -356,7 +356,7 @@ void AP_PitchController::reset_I()
void AP_PitchController::convert_pid()
{
AP_Float &ff = rate_pid.ff();
if (ff.configured_in_storage()) {
if (ff.configured()) {
return;
}

2
libraries/APM_Control/AP_RollController.cpp

@ -258,7 +258,7 @@ void AP_RollController::reset_I() @@ -258,7 +258,7 @@ void AP_RollController::reset_I()
void AP_RollController::convert_pid()
{
AP_Float &ff = rate_pid.ff();
if (ff.configured_in_storage()) {
if (ff.configured()) {
return;
}
float old_ff=0, old_p=1.0, old_i=0.3, old_d=0.08;

Loading…
Cancel
Save