aboutsummaryrefslogtreecommitdiff
path: root/src/PID.h
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-16 18:57:08 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-16 18:57:08 -0600
commited1704f9a110c9fa909dccb3169bf388f48279e4 (patch)
treeb153bddd10a82dbcb7c5c3253e3466b61d5326ba /src/PID.h
parent9eeb5293fc0d022298fb772338241aa7e8672dac (diff)
Chatgpt saved my ass again
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