Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
new constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Superbro525Alt committed Aug 10, 2024
1 parent ee35a95 commit 651077e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
public final class Constants {
public static final int driverport = 0;
public static final int codriverport = 1;
public static final int testport = 2;

public static final int shooterPort = 31;
public static final int indexerPort = 21;
Expand Down
17 changes: 10 additions & 7 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class Robot extends CommandRobot {
private final CommandXboxController m_driver = new CommandXboxController(Constants.driverport);
private final CommandXboxController m_codriver =
new CommandXboxController(Constants.codriverport);
private final CommandXboxController m_test = new CommandXboxController(Constants.testport);

private final Arm m_arm = new Arm();
private final Shooter m_shooter = new Shooter();
Expand Down Expand Up @@ -63,19 +64,19 @@ public Robot() {
DriverStation.startDataLog(DataLogManager.getLog());
SignalLogger.setPath(DataLogManager.getLogDir());
SignalLogger.start();
m_sysid.add(m_shooter::sysIdDynamic);
m_sysid.add(m_shooter::sysIdQuasistatic);
// m_sysid.add(m_shooter::sysIdDynamic);
// m_sysid.add(m_shooter::sysIdQuasistatic);

m_sysid.add(m_arm::sysIdDynamic);
m_sysid.add(m_arm::sysIdQuasistatic);
// m_sysid.add(m_arm::sysIdDynamic);
// m_sysid.add(m_arm::sysIdQuasistatic);

m_sysid.add(m_climber::sysIdDynamic);
m_sysid.add(m_climber::sysIdQuasistatic);
// m_sysid.add(m_climber::sysIdDynamic);
// m_sysid.add(m_climber::sysIdQuasistatic);

m_sysid.add(m_intake::sysIdDynamic);
m_sysid.add(m_intake::sysIdQuasistatic);

m_sysid.addAll(m_drivetrain.getSysIdCommands());
// m_sysid.addAll(m_drivetrain.getSysIdCommands());

m_drivetrain.registerTelemetry(m_logger::telemeterize);

Expand Down Expand Up @@ -131,5 +132,7 @@ public Robot() {
});
m_codriver.y().onTrue(m_superstructure.stop());
m_codriver.b().whileTrue(m_superstructure.outake());

m_driver.b().onTrue(m_sysid.getAllCommands());
}
}

0 comments on commit 651077e

Please sign in to comment.