Robot.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:Robot_2017 作者:
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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号