History

Fix non self-sufficient headers

Clement committed 8 years ago

Commit da9fb9c1 parent ec35462263 files · +629 −600Browse files

Showing the changes to libraries/shared/src/PIDController.cpp (1 of 263 files). Show all

Unified · Split

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