pid_compute() function
Input error and get PID control result
Arguments
pid
PID control block handle, created by `pid_new_control_block()`
input_error
error data that feed to the PID controller
ret_result
result after PID calculation
Return value
- ESP_OK: Run a PID compute successfully - ESP_ERR_INVALID_ARG: Run a PID compute failed because of invalid argument