Files
RiseOfRidgebotics2020/src/main/java/frc4388/robot/commands/shooter/ShooterTrenchPosition.java
T

53 lines
1.6 KiB
Java
Raw Normal View History

2020-03-10 20:14:28 -06:00
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
package frc4388.robot.commands.shooter;
import edu.wpi.first.wpilibj2.command.CommandBase;
2020-03-10 20:23:32 -06:00
import frc4388.robot.subsystems.Shooter;
import frc4388.robot.subsystems.ShooterAim;
import frc4388.robot.subsystems.ShooterHood;
2020-03-10 20:14:28 -06:00
public class ShooterTrenchPosition extends CommandBase {
2020-03-10 20:23:32 -06:00
Shooter m_shooter;
ShooterHood m_hood;
ShooterAim m_aim;
2020-03-10 20:14:28 -06:00
/**
* Creates a new ShooterTrenchPosition.
*/
2020-03-10 20:23:32 -06:00
public ShooterTrenchPosition(Shooter shooterSub, ShooterHood hoodSub, ShooterAim aimSub) {
m_shooter = shooterSub;
m_hood = hoodSub;
m_aim = aimSub;
addRequirements(m_shooter,m_hood,m_aim);
2020-03-10 20:14:28 -06:00
}
// Called when the command is initially scheduled.
@Override
public void initialize() {
}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
2021-03-23 16:39:17 -06:00
m_shooter.runDrumShooterVelocityPID(5500);
m_hood.runAngleAdjustPID(11);
//m_aim.runshooterRotatePID(-28);
2020-03-10 20:14:28 -06:00
}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {
}
// Returns true when the command should end.
@Override
public boolean isFinished() {
return false;
}
}