aboutsummaryrefslogtreecommitdiff
path: root/zumo/pid.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-06-08 09:33:12 +0200
committerlonkaars <loek@pipeframe.xyz>2023-06-08 09:33:12 +0200
commitc81c6223b7d9e5973f5d2825c399d5777e093c58 (patch)
treea7eceaf2e0b6525f6aeacaedb1b33e42582529e8 /zumo/pid.cpp
parent97939ee4eaad5937a0a2eee190b2b9028d009a97 (diff)
parent2903e61cbe2eeff3121f67da516ea195999f0bba (diff)
merge dev into master
Diffstat (limited to 'zumo/pid.cpp')
-rw-r--r--zumo/pid.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/zumo/pid.cpp b/zumo/pid.cpp
index 7c1cbda..17588e3 100644
--- a/zumo/pid.cpp
+++ b/zumo/pid.cpp
@@ -45,8 +45,7 @@ PID speed_pid = PID();
PID steer_pid = PID();
PID speed_mod_pid = PID();
void apply_pid(dui_state_t* target, dui_state_t* current) {
- current->speed = speed_pid.iter(target->speed);
+ current->Speed = speed_pid.iter(target->Speed);
current->steer = steer_pid.iter(target->steer);
current->speed_mod = speed_mod_pid.iter(target->speed_mod);
}
-