diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-05-14 15:07:21 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-05-14 15:07:21 +0200 |
commit | e3c22d70487985a6dcb7a5866c8baeecbbaa4103 (patch) | |
tree | a3d1d6b8c0c5023eb851f4b48ff8e28d7232e4b4 /zumo/pid.h | |
parent | 6472b77eb6582e5133a28f61a448eb6a00cd25b6 (diff) |
add PID controller
Diffstat (limited to 'zumo/pid.h')
-rw-r--r-- | zumo/pid.h | 7 |
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); + |