so our robot has a code for climbing. While a button is pressed, it is supposed to raise up our SlideRack. I’ve tried doing a lot of trouble shooting, asking for help, research, trying to see if I can fix it, but it’s taking so long and Regoinals are right around the corner.
Instead of raising at the press of a button, our motor sends out like rapid pulses, pulling and pushing our rod which holds the cords for our pullys. I think there is something with the code that tells it to call it every second but I can’t seem to find it, I’m still fairly new to this. And also worth noting we’re trying to use encoders to restrict the height of our arm
Here’s my git:
If anyone could help me, that would be fantastic
Thank You!
i just had to change it to getDistance, but it doesnt seem like the encoders are doing anything. Our climber works and everything, but its supposed to stop once the encoder reaches a certain rotation