Skip to content

Commit

Permalink
fixed typo in gains set functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwatkins committed Aug 22, 2017
1 parent 18d4bca commit fea2f9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 114 deletions.
111 changes: 0 additions & 111 deletions libpid.h

This file was deleted.

Binary file modified src/pid.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions src/pid/include/pid/pid.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ void libpid::setIntegratorMin(double min) {
}

void libpid::setKp(double kp) {
kp_ = (kp >= 0) ? kp : 0;
kp_ = (kp <= 0) ? kp : 0;
}

void libpid::setKi(double ki) {
ki_ = (ki >= 0) ? ki : 0;
ki_ = (ki <= 0) ? ki : 0;
}

void libpid::setKd(double kd) {
kd_ = (kd >= 0) ? kd : 0;
kd_ = (kd <= 0) ? kd : 0;
}

double libpid::getPoint() {
Expand Down

0 comments on commit fea2f9c

Please sign in to comment.