Hey guys. New to coding here. I ran into an issue with my PID code for worlds (programming in block code because I haven’t learned text yet). The code doesn’t drive. I think it might be my PID loop that’s the issue but I’m not too sure. Currently I’m just trying to make the robot drive forwards and backwards. Can anyone help?
What does error default to. Because you have: repeat until error < 10, but if error starts at 0, it will never run. What you should do is when declaring kp and your other constants, set error to 11.
1 Like
I was actually able to fix the code. Thanks for replying though!
2 Likes
How did you fix your code?
1 Like