public void autonomousInit() {
// Use the selected autonomous command
autonomousCommand = (Command) oi.autonomousProgramChooser.getSelected();
//double desiredDistrance = preferences.getDouble("DesiredDistance", 9.0);
//autonomousCommand = new AutonomousCommandToteStrategy();
//autonomousCommand = new StrafeCommand(3, 0.7);
//double desiredDistance = preferences.getDouble("DesiredDistance", 9.0);
//autonomousCommand = new AutonomousCommandToteStrategy();
// Sets the setPoint to where-ever it is to prevent the elevator
// wanting to go to a random position (default zero)
elevator.setHieghtToCurrentPosition();
// Tells the elevator to approximate the other maximum when it hits a limit switch
Elevator.SAFETY = true;
Elevator.needToApproximate = true;
Elevator.didSaveTopValue = false;
Elevator.didSaveBottomValue = false;
driveTrain.fieldMode = false;
autonomousCommand.start();
}
Robot.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:2015-Recycle-Rush
作者:
评论列表
文章目录