diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-16 18:57:08 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-16 18:57:08 -0600 |
commit | ed1704f9a110c9fa909dccb3169bf388f48279e4 (patch) | |
tree | b153bddd10a82dbcb7c5c3253e3466b61d5326ba /src/PID.h | |
parent | 9eeb5293fc0d022298fb772338241aa7e8672dac (diff) |
Chatgpt saved my ass again
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 |