apparently it worked the entire time

This commit is contained in:
Abhishrek05
2023-05-11 17:03:24 -07:00
parent e0b6a24286
commit 2adcbdb5c6
3 changed files with 6 additions and 3 deletions
+5
View File
@@ -16,6 +16,10 @@ public class Robot extends TimedRobot {
@Override
public void robotInit() {
m_robotContainer = new RobotContainer();
m_robotContainer.m_robotMap.driveBase.arcadeDrive(kDefaultPeriod, kDefaultPeriod);
m_robotContainer.m_robotMap.driveBase.setSafetyEnabled(true);;
m_robotContainer.m_robotMap.driveBase.setSafetyEnabled(true);;
}
/** Periodic code for all robot modes should go here. */
@@ -56,6 +60,7 @@ public class Robot extends TimedRobot {
@Override
public void teleopPeriodic() {
m_robotContainer.putReadyState();
m_robotContainer.m_robotMap.driveBase.arcadeDrive(m_robotContainer.getController().getLeftX(), m_robotContainer.getController().getLeftY());
}
/** Initialization code for test mode should go here. */
@@ -26,7 +26,7 @@ import frc4388.robot.subsystems.Shooter;
*/
public class RobotContainer {
/* RobotMap */
private final RobotMap m_robotMap = new RobotMap();
public final RobotMap m_robotMap = new RobotMap();
/* Subsystems */
private final Drive m_robotDrive = new Drive(m_robotMap.driveMotorLeftLeader, m_robotMap.driveMotorRightLeader, m_robotMap.driveMotorLeftFollower, m_robotMap.driveMotorRightFollower, m_robotMap.driveBase);
@@ -32,8 +32,6 @@ public class Shooter extends SubsystemBase {
* @return True if the shooter was ready or false if the shooter was not ready
*/
public boolean fire() {
if (!isReady())
return false;
m_solenoid.set(true);
return true;
}