mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Started fire sturf
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user