Showing the changes to libraries/shared/src/PIDController.cpp (1 of 263 files). Show all
Unified · Split
| @@ -9,10 +9,13 @@ · 8 unmodified lines | ||
| 9 | 9 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| 10 | 10 | // |
| 11 | 11 | |
| 12 | +#include "PIDController.h" | |
| 13 | + | |
| 12 | 14 | #include <glm/glm.hpp> |
| 15 | + | |
| 13 | 16 | #include <QDebug> |
| 17 | + | |
| 14 | 18 | #include "SharedLogging.h" |
| 15 | −#include "PIDController.h" | |
| 16 | 19 | |
| 17 | 20 | float PIDController::update(float measuredValue, float dt, bool resetAccumulator) { |
| 18 | 21 | const float error = getMeasuredValueSetpoint() - measuredValue; // Sign is the direction we want measuredValue to go. Positive means go higher. |