Hey guys I was just wondering if anyone has some coding examples or tips they could share with me? Our robot is a a typical square 6 wheel drive (4 motor) with a DR4B on top. Our main goal is for our robot to set blocks in the towers.
1 Like
I think that the tag is wrong, this seems like an EDR discussion, not an IQ one
It’s a good idea to have preset heights. Just have your motors spin until the motor rotation == yourTarget
PID is very useful to keep the two sides of your dr4b level, especially when your dr4b is lifting something heavy
4 Likes
Have the controller buttons raise or lower a “height” desired value.
if (controller button up) {height=height+5;}
if (controller button down) {height = height-5;}
liftpid(height);
This will allow you to just tap the button a few times to move the lift slowly, and it wont move in a jerky fashion.
2 Likes
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.