summaryrefslogtreecommitdiff
path: root/zumo/pid.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-14 15:07:21 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-14 15:07:21 +0200
commite3c22d70487985a6dcb7a5866c8baeecbbaa4103 (patch)
treea3d1d6b8c0c5023eb851f4b48ff8e28d7232e4b4 /zumo/pid.h
parent6472b77eb6582e5133a28f61a448eb6a00cd25b6 (diff)
add PID controller
Diffstat (limited to 'zumo/pid.h')
-rw-r--r--zumo/pid.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zumo/pid.h b/zumo/pid.h
new file mode 100644
index 0000000..2cdbc91
--- /dev/null
+++ b/zumo/pid.h
@@ -0,0 +1,7 @@
+#pragma once
+
+#include "protocol.h"
+
+/** @brief edit `current` to be closer to `target` using PID controllers */
+void apply_pid(dui_state_t* target, dui_state_t* current);
+