pid.cpp
double PID::compute(double input)
{
    double dinput = (input - last_input);
    return compute_output(input, dinput);
}
/**
 * @brief       Compute PID output.
 *              In this function derivative of the input is approximated by first difference.
 *
 * @param[in]   input   -   currently measured input
 *
 * @return      Output signal
 */
@brief       Compute PID output.
In this function derivative of the input is approximated by first difference.

@param[in]   input   -   currently measured input

@return      Output signal
@brief Compute PID output . In this function derivative of the input is approximated by first difference . @param [ in ] input - currently measured input @return Output signal
double PID::compute(double input)
{
    double dinput = (input - last_input);
    return compute_output(input, dinput);
}
double PID :: compute ( double input ) { double dinput = ( input - last_input ) ; return compute_output ( input , dinput ) ; }
@brief       Compute PID output.
@brief Compute PID output .