This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Robot extends SampleRobot | |
| { | |
| // specify all possible robot configs, with the default (first one) being the competition config | |
| // so it can default to that if we don't load the config.txt file properly | |
| public static RobotConfig config = RobotConfigPicker.get(new RobotConfig[] { new RRRConfigCompetition(), new RRRConfigPractice()}); | |
| public static boolean isCompBot() | |
| { | |
| return config instanceof RRRConfigCompetition; | |
| } |