My team is struggling right now with programming. We use robotc and we need some code input. We are trying to program so that a lift will stop when we press a certain button.
It would be great if you could post your code so we can take a look and see if we have any suggestions. It’s difficult for us to help when the question is very vague.
What starts the Lift Moving?? Are there any other factors, like a Limit ( as in the Arm will Hit an Un-Movable part of the Robot )? Are you using feedback, like with a Potentiometer or Motor Encoder?
If your Code is Super Secret, you can make a Copy of it, and remove the Super Secret Drive Code, replacing it with a Simple Tank Mode, before posting it here…