Hey, thanks for reading my question.
When I try to control a motor via the buttons on the remote, the motor does not work. I must have somehow made a spectacular mistake in the way I am programming them. I have isolated the contraption in a short (10-line) program, and for some reason the arm does not move when the buttons are pressed or held. I tried switching the control over to the joystick channel and the arm moves, so I’m not gonna blame my hardware. In addition I tried two different controllers as well as multiple different button layouts, all to no avail. Is there an adaptation I have to make for button controls?
Following is my isolated code:
task main(){
while(true){
if (Btn6U){
motor[rightArm] = 100;
motor[leftArm] = 100;
}
else if (Btn6D){
motor[rightArm] = -100;
motor[leftArm] = -100;
}
else{
motor[rightArm] = 0;
motor[leftArm] = 0;
}
}
}