aboutsummaryrefslogtreecommitdiff
path: root/zumo/pidtest.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-24 18:03:05 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-24 18:03:05 +0200
commitcef95354c69745f782a95d37f4b0e7bbf02e106a (patch)
treeff3a2ce26b1785dc88eb272f41e24ee997c6b4ed /zumo/pidtest.cpp
parent4568db72dc3f9694ecae3506fc3de6ffc948b24f (diff)
uart working
Diffstat (limited to 'zumo/pidtest.cpp')
-rw-r--r--zumo/pidtest.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/zumo/pidtest.cpp b/zumo/pidtest.cpp
deleted file mode 100644
index b9ce50b..0000000
--- a/zumo/pidtest.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <cstdio>
-#include <random>
-
-#include "pid.h"
-
-int main() {
- float P, I, D;
- P = -0.02;
- I = 0.13;
- D = -300;
- PID test(P, I, D);
- test.reset(0.0);
-
- fprintf(stderr, "P: %.3f :: I: %.3f :: D: %.3f\n", P, I, D);
- for (unsigned int i = 0; i < 100; i++) {
- printf("%2.8f\n", test.iter(i < 50 ? 1.0 : 0.0));
- }
-}