Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Robot2019/src/main/java/frc/robot/RobotMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class RobotMap {
cargoRoller = new VictorSP(0);

// Initialize solenoid on hatch panel mech
hatchPistons = new DoubleSolenoid(0, 1);
hatchPistons = new DoubleSolenoid(7, 0); // 7 is A/Forward, 0 is B/Reverse

leftEnc = new Encoder(new DigitalInput(0), new DigitalInput(1));
rightEnc = new Encoder(new DigitalInput(2), new DigitalInput(3));
Expand All @@ -74,7 +74,7 @@ public class RobotMap {
cameraServer = CameraServer.getInstance().getServer();
cameraServer.setSource(driveCamera);

cargoPDPPort = -1; // TODO: set ports to actual cargo motor port in pdp
cargoPDPPort = 5; // TODO: set ports to actual cargo motor port in pdp
}

private static BaseMotorController createConfiguredMotorController(int port) {
Expand Down
1 change: 1 addition & 0 deletions Robot2019/src/main/java/frc/robot/commands/EjectCargo.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class EjectCargo extends Command {
public EjectCargo(Cargo cargo) {
requires(cargo);
this.cargo = cargo;
timer = new Timer();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class IntakeCargo extends Command {
public IntakeCargo(Cargo cargo) {
requires(cargo);
this.cargo = cargo;
timer = new Timer();
overdraw = false;
}

Expand Down