Started fire sturf

This commit is contained in:
Rishabh
2020-02-22 12:11:50 -07:00
parent 6c8a1dffb3
commit 741b129908
2 changed files with 4 additions and 4 deletions
@@ -27,8 +27,7 @@ public class ShootFireGroup extends ParallelRaceGroup {
super(
new ShooterVelocityControlPID(m_shooter, m_shooter.addFireVel()),
new RunCommand(() -> m_shooter.runAngleAdjustPID(m_shooter.addFireAngle())),
new TrackTarget(m_shooter, m_shooterAim),
new
new TrackTarget(m_shooter, m_shooterAim)
);
}
}
@@ -8,8 +8,9 @@
package frc4388.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.RunCommand;
import frc4388.robot.Constants.StorageConstants;
import frc4388.robot.Subsystems.Storage;
import frc4388.robot.subsystems.Storage;
public class StoragePositionPID extends CommandBase {
@@ -30,7 +31,7 @@ public class StoragePositionPID extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
new runStoragePositionPID(m_storage.getEncoderPos() + StorageConstants.STORAGE_FULL_BALL)
new RunCommand(() -> m_storage.runStoragePositionPID(m_storage.getEncoderPos() + StorageConstants.STORAGE_FULL_BALL));
}
// Called once the command ends or is interrupted.