Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Small fixes.
  • Loading branch information
mike-matera authored May 31, 2018
1 parent 534947a commit 52c72ab
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ FastPID(float kp, float ki, float kd, float hz, int bits=16, bool sign=false)
```
Construct a controller that's ready to go. Calls the following:
```c++
configure(kp, ki, kd, hz, bits, sign);
configure(kp, ki, kd, hz, bits, sign);
```

```c++
Expand Down Expand Up @@ -112,9 +112,9 @@ bool configure(float kp, float ki, float kd, float hz, int bits=16, bool sign=fa
Bulk configure the controller. Equivalent to:
```c++
clear();
setCoefficients(kp, ki, kd, hz);
setOutputConfig(bits, sign);
clear();
setCoefficients(kp, ki, kd, hz);
setOutputConfig(bits, sign);
```

```c++
Expand Down Expand Up @@ -145,6 +145,10 @@ FastPID myPID(Kp, Ki, Kd, Hz, output_bits, output_signed);
void setup()
{
Serial.begin(9600);
if (myPID.err()) {
Serial.println("There is a configuration error!");
for (;;) {}
}
}

void loop()
Expand Down

0 comments on commit 52c72ab

Please sign in to comment.