aboutsummaryrefslogtreecommitdiff
path: root/src/PID.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PID.h')
-rw-r--r--src/PID.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PID.h b/src/PID.h
index 649a113..03eadf3 100644
--- a/src/PID.h
+++ b/src/PID.h
@@ -10,6 +10,8 @@ typedef struct PIDConfig {
float kI;
float kD;
+ // Angles are fucking weird.
+ bool angleMode;
bool doClamp;
float min;
float max;
@@ -24,6 +26,7 @@ typedef struct PID {
float kI;
float kD;
+ bool angleMode;
bool doClamp;
float min;
float max;
@@ -38,4 +41,7 @@ PID createPID(PIDConfig config);
float runPID(float setpoint, float processValue, PID * pid);
void resetPID(PID * pid);
+// Angle shit.
+float angleDis(float a, float b);
+
#endif