VisionAlignment.java 文件源码

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

项目:StormRobotics2017 作者:
public VisionAlignment() {

    table = NetworkTable.getTable("Vision");
    double dist = table.getNumber("est_distance", 0);

    double incr = 0.5;
    int reps = (int) (dist / incr);

    for(int i = 0; i<reps; i++) {
        addSequential(new VisionGyroAlign(), 1.5);
        addSequential(new WaitCommand(0.7));
        addSequential(new DriveForwardDistance(-.2,-.2, -incr/1.5, -incr/1.5, true));
        addSequential(new WaitCommand(0.5));
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号