Based on the block of code below, i feel its safe to assume that you have differnt classes for all of the commands you wish to run once the button is pressed, and it would be easier to diagnose if you posted your full robot code.
If this is infact your only class, your attempting to refernce a null command, so the button press is trying to reach a null comand, in result doing nothing.
Quote:
Originally Posted by AnnaliseDonavan
Code:
button1.whenPressed(new ElevatorOff());
button2.whenPressed(new ElevatorOn());
button3.whenPressed(new ElevatorReverse());
button4.whenPressed(new ArmsOut());
button5.whenPressed(new ArmsIn());
button6.whenPressed(new ArmsVerticalIn());
button7.whenPressed(new ArmsVarticalOut());
button8.whenPressed(new BlueLightShow());
button9.whenPressed(new LigthShowOn());
button10.whenPressed(new RedLightShow());
button11.whenPressed(new LightShowEnd());
|