diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2023-06-07 13:54:17 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2023-06-07 13:54:17 +0200 |
commit | e943ed3992044c601c3eb036a07ff9f68db52c8b (patch) | |
tree | a914b2d8dea7e399f42df64df82f3b5a95c523b8 /zumo/pid.cpp | |
parent | 96b0d8f65fd7d7bd8cd2177c2e6d3f1679239519 (diff) |
zumo update
Diffstat (limited to 'zumo/pid.cpp')
-rw-r--r-- | zumo/pid.cpp | 3 |
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); } - |