diff options
Diffstat (limited to 'src/PID.h')
-rw-r--r-- | src/PID.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |