Skip to content

Commit

Permalink
Semi-working trench
Browse files Browse the repository at this point in the history
  • Loading branch information
ctychen committed Mar 2, 2020
1 parent 4b8db15 commit 3708122
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public MustangCommand getAutonomousCommand() {
// shooter, indexer, turret, coprocessor);
// new AutoShootThenTimeDrive(driveBase, intake, conveyor, shooter, indexer, turret);
//new ShootFromAngleThenTimeDrive(-166, -0.3, driveBase, intake, conveyor, shooter, indexer, turret);
new ToTrenchRunAndShoot(-27, -10, driveBase, intake, conveyor, indexer, turret, shooter);
new ToTrenchRunAndShoot(-25, -7, driveBase, intake, conveyor, indexer, turret, shooter);
}

public static void autonomousInit(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public ToTrenchRunAndShoot(double initAng, double trenchAng, DriveBase driveBase
new TimedDrive(6.2, 0.12, driveBase),
new RotateToAngle(turret, trenchAng)
),
// new StartShooter(shooter),
// new Shoot(shooter),
new StartShooter(shooter),
new Shoot(shooter),
new EmptyRevolver(indexer),
new StopShooter(shooter)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void initialize() {

@Override
public void execute() {
if(!runVisionOnce && System.currentTimeMillis()-startTime > 800){
if(!runVisionOnce && System.currentTimeMillis()-startTime > 3000){
coprocessor.getLatestVisionData();
runVisionOnce = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Shooter() {
}

public double getStage2Velocity() {
return stage2_mainEncoder.getVelocity() * PULLEY_RATIO;
return stage2_mainEncoder.getVelocity();
}

public void run() {
Expand Down

0 comments on commit 3708122

Please sign in to comment.