diff --git a/libraries/AP_WheelEncoder/AP_WheelRateControl.cpp b/libraries/AP_WheelEncoder/AP_WheelRateControl.cpp index e283cbfae0..87f15168c4 100644 --- a/libraries/AP_WheelEncoder/AP_WheelRateControl.cpp +++ b/libraries/AP_WheelEncoder/AP_WheelRateControl.cpp @@ -183,6 +183,6 @@ AC_PID& AP_WheelRateControl::get_pid(uint8_t instance) if (instance == 0) { return _rate_pid0; } else { - return _rate_pid0; + return _rate_pid1; } }