Skip to content

Instantly share code, notes, and snippets.

@Poppeseed
Poppeseed / Robot.java
Last active March 6, 2018 19:46
RoboRio Robot Configuration Picker
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;
}