From 2fb7ee9c5a17a5c29c60bc2db1d0a904b9bc0d96 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Wed, 18 Jan 2017 20:15:44 -0800 Subject: [PATCH] Edit AutonHopperShoot so there are no errors --- .../robot/commandgroups/AutonHopperShoot.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java index ebad909..28c3413 100644 --- a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java +++ b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java @@ -3,7 +3,7 @@ package org.usfirst.frc.team3501.robot.commandgroups; import org.usfirst.frc.team3501.robot.Constants; import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance; import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle; -import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheel; +import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheelContinuous; import edu.wpi.first.wpilibj.command.CommandGroup; @@ -19,25 +19,25 @@ public class AutonHopperShoot extends CommandGroup { // Robot turns towards hopper addSequential(new TurnForAngle(90.0, Constants.Direction.RIGHT, 1.0)); // Robot drives near hopper - addSequential(new DriveDistance()); + addSequential(new DriveDistance(191.5, 1)); // Robot turns left towards hopper - addSequential(new TurnForAngle(90)); + addSequential(new TurnForAngle(90.0, Constants.Direction.LEFT, 1.0)); // Robot drives in front of hopper - addSequential(new DriveDistance()); + addSequential(new DriveDistance(30.0, 1.0)); // Robot turns to face hopper - addSequential(new TurnForAngle(90)); + addSequential(new TurnForAngle(90.0, Constants.Direction.RIGHT, 1.0)); // Robot hits hopper switch - addSequential(new DriveDistance()); + addSequential(new DriveDistance(2.0, 1.0)); // Robot backs up from switch - addSequential(new DriveDistance()); + addSequential(new DriveDistance(2.0, -1.0)); // Robot turns towards the boiler - addSequential(new TurnForAngle(90)); + addSequential(new TurnForAngle(90.0, Constants.Direction.RIGHT, 1.0)); // Robot drives to boiler - addSequential(new DriveDistance()); + addSequential(new DriveDistance(123.3, 1.0)); // Robot turns parallel to boiler - addSequential(new TurnForAngle(45)); + addSequential(new TurnForAngle(45.0, Constants.Direction.LEFT, 1.0)); // Shoot - addSequential(new RunFlyWheel()); + addSequential(new RunFlyWheelContinuous(1.0)); } } -- 2.30.2