mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
commets
This commit is contained in:
@@ -91,6 +91,9 @@ public final class Constants {
|
|||||||
public static final Gains SHOOTER_TURRET_GAINS = new Gains(0.6, 0.0, 0.0, 0.0, 0, 1.0);
|
public static final Gains SHOOTER_TURRET_GAINS = new Gains(0.6, 0.0, 0.0, 0.0, 0, 1.0);
|
||||||
public static final Gains SHOOTER_ANGLE_GAINS = new Gains(0.05, 0.0, 0.0, 0.0, 0, 0.3);
|
public static final Gains SHOOTER_ANGLE_GAINS = new Gains(0.05, 0.0, 0.0, 0.0, 0, 0.3);
|
||||||
public static final double SHOOTER_TURRET_MIN = -1.0;
|
public static final double SHOOTER_TURRET_MIN = -1.0;
|
||||||
|
|
||||||
|
/* Turret Constants */
|
||||||
|
//ID
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,8 +66,10 @@ public class RobotContainer {
|
|||||||
|
|
||||||
// continually sends updates to the Blinkin LED controller to keep the lights on
|
// continually sends updates to the Blinkin LED controller to keep the lights on
|
||||||
m_robotLED.setDefaultCommand(new RunCommand(m_robotLED::updateLED, m_robotLED));
|
m_robotLED.setDefaultCommand(new RunCommand(m_robotLED::updateLED, m_robotLED));
|
||||||
}
|
|
||||||
|
|
||||||
|
//Turret default command
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this method to define your button->command mappings. Buttons can be
|
* Use this method to define your button->command mappings. Buttons can be
|
||||||
* created by instantiating a {@link GenericHID} or one of its subclasses
|
* created by instantiating a {@link GenericHID} or one of its subclasses
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public class RobotMap {
|
|||||||
/*Boom Boom Subsystem*/
|
/*Boom Boom Subsystem*/
|
||||||
public final WPI_TalonFX shooterFalconLeft = new WPI_TalonFX(ShooterConstants.SHOOTER_FALCON_LEFT_CAN_ID);
|
public final WPI_TalonFX shooterFalconLeft = new WPI_TalonFX(ShooterConstants.SHOOTER_FALCON_LEFT_CAN_ID);
|
||||||
public final WPI_TalonFX shooterFalconRight = new WPI_TalonFX(ShooterConstants.SHOOTER_FALCON_RIGHT_CAN_ID);
|
public final WPI_TalonFX shooterFalconRight = new WPI_TalonFX(ShooterConstants.SHOOTER_FALCON_RIGHT_CAN_ID);
|
||||||
|
//Create motor CANSparkMAx
|
||||||
void ConfigureShooterMotorControllers() {
|
void ConfigureShooterMotorControllers() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,10 +8,28 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
|||||||
|
|
||||||
public class Turret extends SubsystemBase {
|
public class Turret extends SubsystemBase {
|
||||||
/** Creates a new Turret. */
|
/** Creates a new Turret. */
|
||||||
public Turret() {}
|
//Motor object
|
||||||
|
//Variables
|
||||||
|
public Turret(/*Motor argument*/ */) {
|
||||||
|
//Motor object = motor argument
|
||||||
|
//Config motor
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void periodic() {
|
public void periodic() {
|
||||||
// This method will be called once per scheduler run
|
// This method will be called once per scheduler run
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//function turnWithJoystick(double input)
|
||||||
|
// motor.set(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** TODO
|
||||||
|
* Constants ID
|
||||||
|
* RobotMap configs
|
||||||
|
* RobotContainer defaultCommand and Instantiation
|
||||||
|
* turnWithJoystick function
|
||||||
|
* setPosition function
|
||||||
|
* Limit switches
|
||||||
|
**/
|
||||||
Reference in New Issue
Block a user