Skip to content
Snippets Groups Projects
Commit be715234 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Added sensible default value for I reset, this should be exposed in the api

parent d44ba097
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ double Pid_controller::output_=0.05; //output to LTC6992
std::vector<double> Pid_controller::pid_vec_ = {0., 0., 0.}; //current values of P I D
std::vector<double> Pid_controller::kpid_vec_ = {0., 0., 0.}; //coefficients Kp Ki Kd
double Pid_controller::I_reset_ = 0.; //reset value of I
double Pid_controller::I_reset_errsq_ = 0.; //value of error*error above which the I-term is held in reset
double Pid_controller::I_reset_errsq_ = 0.5; //value of error*error above which the I-term is held in reset
void Pid_controller::init(double setpoint, std::vector<double> kpid, double I_reset, double I_reset_errsq){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment