Log in

View Full Version : Coding a few issues out we had over the season


cpapplefamily
12-06-2016, 14:41
One of our problems we never ironed out was with our autonomous Chooser whether to shoot or not. We are using a Java Command based program. The simple fix we are trying is to use the isAutonomous. Seems we can use this in the Robot class but not outside of it. How can i get this status in the execute() of the command to determine when in autonomous to release the ball or not. We have tried Robot.isAutonomous() but errors.

Arhowk
12-06-2016, 18:29
DriverStation.getInstance().isAutonomous()

cpapplefamily
12-06-2016, 20:08
Thank you.