mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
Revert "Merge branch 'Shooter' of https://github.com/Team4388/2022NoWayHome into Shooter"
This reverts commit82297e5a16, reversing changes made to71a6afd240.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
package frc4388.robot.subsystems;
|
||||
|
||||
import java.io.Console;
|
||||
import java.util.Base64.Encoder;
|
||||
|
||||
import com.ctre.phoenix.motorcontrol.NeutralMode;
|
||||
@@ -28,7 +27,6 @@ public ShooterTables m_shooterTable;
|
||||
public static Gains m_drumShooterGains = ShooterConstants.DRUM_SHOOTER_GAINS;
|
||||
public static BoomBoom m_boomBoom;
|
||||
public static IHandController m_driverController; //not sure if driverController in 2022 = m_controller in 2020
|
||||
BangBangController m_controller = new BangBangController();
|
||||
|
||||
double velP;
|
||||
double input;
|
||||
@@ -137,6 +135,7 @@ public void setShooterGains() {
|
||||
m_shooterFalconLeft.set(TalonFXControlMode.Velocity, targetVel); //Init
|
||||
m_shooterFalconRight.follow(m_shooterFalconLeft);
|
||||
// New BoomBoom controller stuff
|
||||
BangBangController controller = new BangBangController();
|
||||
//Controls a motor with the output of the BangBang controller
|
||||
//Controls a motor with the output of the BangBang conroller and a feedforward
|
||||
//Shrinks the feedforward slightly to avoid over speeding the shooter
|
||||
@@ -144,4 +143,4 @@ public void setShooterGains() {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,11 +67,11 @@ public class Turret extends SubsystemBase {
|
||||
|
||||
@Override
|
||||
public void periodic() {
|
||||
// SmartDashboard.putNumber("Turret Angle Raw", getboomBoomRotatePosition());
|
||||
SmartDashboard.putNumber("Turret Angle Raw", getboomBoomRotatePosition());
|
||||
|
||||
// SmartDashboard.putData("Turret Angle", (Sendable) m_turretGyro);
|
||||
SmartDashboard.putData("Turret Angle", (Sendable) m_turretGyro);
|
||||
|
||||
// SmartDashboard.putBoolean("Turret Aimed", m_isAimReady);
|
||||
SmartDashboard.putBoolean("Turret Aimed", m_isAimReady);
|
||||
// This method will be called once per scheduler run
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user