public void autonomousInit() {
setBrakeMode(true);
// schedule the autonomous command (example)
//next two lines of code work for now, but we'll probably want to replace them with a more
//elegant way of selecting the auton mode we want from the smart dashboard
DriveEncoders.intializeEncoders();
RobotMap.driveTrainRightFront.setPosition(0);
RobotMap.driveTrainLeftFront.setPosition(0);
System.out.print(auto.getSelected());
autonomousCommand = (CommandGroup)new AutonCommandGroup (ParseInput.takeInput((String)auto.getSelected()));
if (autonomousCommand != null) autonomousCommand.start();
}
Robot.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:Robot_2017
作者:
评论列表
文章目录