Log in

View Full Version : SmartDashboard CommandButton


ggorsuch
12-03-2013, 22:20
We are using buttons on smartdashboard to trigger preset shooter commands. However, the buttons are quite small for use on a touch screen. When I right click on it, I can change to CommandButton, which allows resizing. The problem, it no longer works. How do I integrate CommandButton into our program (java). Right now we are using: SmartDashboard.putData("Back Pyramid", new PresetShot(16.0, 4500.0));

F22Rapture
13-03-2013, 00:07
Try making an "InternalButton" that links to the command, and then add the InternalButton to the SmartDashboard using putData.