Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Coding a few issues out we had over the season (http://www.chiefdelphi.com/forums/showthread.php?t=148921)

cpapplefamily 06-12-2016 02:41 PM

Coding a few issues out we had over the season
 
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 06-12-2016 06:29 PM

Re: Coding a few issues out we had over the season
 
DriverStation.getInstance().isAutonomous()

cpapplefamily 06-12-2016 08:08 PM

Re: Coding a few issues out we had over the season
 
Thank you.


All times are GMT -5. The time now is 08:20 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi