Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions MiniPID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,16 @@ void MiniPID::setF(double f){
* @param d Derivative gain. Responds quickly to large changes in error. Small values prevents P and I terms from causing overshoot.
*/
void MiniPID::setPID(double p, double i, double d){
P=p;I=i;D=d;
checkSigns();
setP(p);
setI(i);
setD(d);
}

void MiniPID::setPID(double p, double i, double d,double f){
P=p;I=i;D=d;F=f;
checkSigns();
setP(p);
setI(i);
setD(d);
setF(f);
}

/**Set the maximum output value contributed by the I component of the system
Expand Down