RightGearAuto.java 文件源码

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

项目:VikingRobot 作者:
public RightGearAuto() {
    System.out.println("Placing right gear");
    addSequential(new CloseGearManipulator());
    addSequential(new GyroDistanceDrive(7 * 12),4);
    addSequential(new WaitCommand(1));
    addSequential(new RotateRelative(-60), 4); // Turn left to face peg
    addSequential(new WaitCommand(0.4)); // Small delay after turning
    addSequential(new GyroDistanceDrive(2.6 * 12 ), 4); // Drive up to peg
    addSequential(new OpenGearManipulator()); // Drop gear
    addSequential(new WaitCommand(1)); // Wait for gear to settle
    addSequential(new ConstantDrive(-0.5, 0.5)); // Move backwards
    addSequential(new CloseGearManipulator()); // Get the robot ready for teleop
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号