Skip to content

Commit

Permalink
added hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjcoderman committed Sep 4, 2024
1 parent 1f2a20d commit 89caac5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
30 changes: 30 additions & 0 deletions src/main/java/frc/robot/Hardware.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package frc.robot;

import com.ctre.phoenix6.hardware.TalonFX;

import edu.wpi.first.units.Power;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.PowerDistribution;
import edu.wpi.first.wpilibj.PowerDistribution.ModuleType;
import frc.robot.config.RobotConfig;

public class Hardware {
private final String canivoreName = null;

public final PowerDistribution pdh = new PowerDistribution(1, ModuleType.kRev);

public final TalonFX shooter = new TalonFX(RobotConfig.get().shooter().motorID(), canivoreName);

public final TalonFX queuer = new TalonFX(RobotConfig.get().queuer().motorID(), canivoreName);


public final TalonFX intake = new TalonFX(RobotConfig.get().intake().motorID(), canivoreName);

public final TalonFX armLeft = new TalonFX(RobotConfig.get().arm().leftMotorID(), canivoreName);
public final TalonFX armRight = new TalonFX(RobotConfig.get().arm().rightMotorID(), canivoreName);





}
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
import frc.robot.config.RobotConfig;
import frc.robot.fms.FmsSubsystem;
import frc.robot.generated.BuildConstants;
import frc.robot.queuer.QueuerSubsystem;
import frc.robot.util.Stopwatch;
import frc.robot.util.scheduling.LifecycleSubsystemManager;

public class Robot extends TimedRobot {
private Command autonomousCommand;

private final FmsSubsystem fms = new FmsSubsystem();
private final Hardware hardware = new Hardware();
private final Autos autos = new Autos();

public Robot() {
System.out.println("roboRIO serial number: " + RobotConfig.SERIAL_NUMBER);

Expand Down

0 comments on commit 89caac5

Please sign in to comment.