You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows you to use Proportional on Error without explicitly saying so.
90
90
91
-
#### Compute()
91
+
#### Compute
92
92
93
93
```c++
94
94
boolQuickPID::Compute()
95
95
```
96
96
97
97
This function contains the PID algorithm and it should be called once every loop(). Most of the time it will just return false without doing anything. However, at a frequency specified by `SetSampleTime` it will calculate a new Output and return true.
98
98
99
-
#### SetTunings()
99
+
#### SetTunings
100
100
101
101
```c++
102
102
voidQuickPID::SetTunings(float Kp, float Ki, float Kd, float POn)
The PID controller is designed to vary its output within a given range. By default this range is 0-255, the Arduino PWM range.
128
128
129
-
#### SetMode()
129
+
#### SetMode
130
130
131
131
```c++
132
132
voidQuickPID::SetMode(bool Mode)
133
133
```
134
134
135
135
Allows the controller Mode to be set to `MANUAL` (0) or `AUTOMATIC` (non-zero). when the transition from manual to automatic occurs, the controller is automatically initialized.
136
136
137
-
#### Initialize()
137
+
#### Initialize
138
138
139
139
```c++
140
140
void QuickPID::Initialize()
141
141
```
142
142
143
143
Does all the things that need to happen to ensure a bumpless transfer from manual to automatic mode.
0 commit comments