ShootIntoGoal.java 文件源码

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

项目:2016Robot 作者:
public ShootIntoGoal() {

        // Arms down
        addSequential(new ArmsDown());

        // Aim at goal
        addSequential(new ManualShooterAngle(), 0.7);

        // Turn to goal
        addSequential(new RotateRobotToGoal(), 0.8);
        addSequential(new WaitCommand(0.5));
        addSequential(new RotateRobotToGoal(), 0.5);
        addSequential(new WaitCommand(0.5));
        addSequential(new RotateRobotToGoal(), 0.3);
        addSequential(new WaitCommand(0.5));
        addSequential(new RotateRobotToGoal(), 0.3);

        // Aim at goal
        addSequential(new SetShooterAngleToGoal(), 0.7);

//      // Rev up shooter
//      addSequential(new SetShooterToCalculatedSpeed(), 1.5);
//      
//      // Fire at goal
//      addSequential(new ToggleShooterPiston());
//      addSequential(new WaitCommand(0.25));
//      addSequential(new ToggleShooterPiston());

        addSequential(new ShootFullSpeed());

    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号