/**
* This autonomous (along with the chooser code above) shows how to select
* between different autonomous modes using the dashboard. The sendable
* chooser code works with the Java CustomDashboard. If you prefer the
* LabVIEW Dashboard, remove all of the chooser code and uncomment the
* getString line to get the auto name from the text box below the Gyro
*
* You can add additional auto modes by adding additional comparisons to the
* switch structure below with additional strings. If using the
* SendableChooser make sure to add them to the chooser code above as well.
*/
@Override
public void autonomousInit() {
driveTrain.resetEncoders();
driveTrain.resetGyro();
autoSelected = (Command) chooser.getSelected();
if(autoSelected instanceof Initializer) {
((Initializer)autoSelected).init();
}
autoSelected.start();
// autoSelected = CustomDashboard.getString("Auto Selector",
// defaultAuto);
System.out.println("Auto selected: " + autoSelected);
pollPreferences();
}
Robot.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:2017SteamBot2
作者:
评论列表
文章目录