Skip to content

Commit

Permalink
Merge branch 'mvp-testing' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur authored Mar 5, 2022
2 parents 188fbc2 + 6bc684d commit a9c6734
Show file tree
Hide file tree
Showing 4 changed files with 432 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/main/java/frc/team449/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import frc.team449.javaMaps.FullMap;
import frc.team449.javaMaps.IntakeTestMap;
import frc.team449.other.Clock;
import frc.team449.other.Updater;
import io.github.oblarg.oblog.Logger;
Expand All @@ -21,7 +22,7 @@ public class Robot extends TimedRobot {

/** The method that runs when the robot is turned on. Initializes all subsystems from the map. */
public static @NotNull RobotMap loadMap() {
return FullMap.createRobotMap();
return IntakeTestMap.createRobotMap();
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/frc/team449/_2022robot/cargo/Cargo2022.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public Cargo2022(
}

public void runIntake() {
intakeMotor.set(-intakeSpeed);
spitterMotor.set(spitterSpeed);
intakeMotor.set(intakeSpeed);
spitterMotor.set(-spitterSpeed);
}

public void runIntakeReverse() {
Expand All @@ -40,8 +40,8 @@ public void runIntakeReverse() {
}

public void spit() {
intakeMotor.set(-intakeSpeed);
spitterMotor.set(-spitterSpeed);
intakeMotor.set(intakeSpeed);
spitterMotor.set(spitterSpeed);
}

public void stop() {
Expand Down
20 changes: 17 additions & 3 deletions src/main/java/frc/team449/javaMaps/FullMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,25 @@ public class FullMap {
LEFT_LEADER_FOLLOWER_1_PORT = 4,
LEFT_LEADER_FOLLOWER_2_PORT = 3,
INTAKE_LEADER_PORT = 8,
INTAKE_FOLLOWER_PORT = 9,
SPITTER_PORT = 10,
INTAKE_FOLLOWER_PORT = 10,
SPITTER_PORT = 9,
RIGHT_CLIMBER_MOTOR_PORT = 6,
LEFT_CLIMBER_MOTOR_PORT = 5;
/*
public int chVEL = 1;
public void changeVel() {
if (chVEL == 1) {
DRIVE_KP_VEL = 0.0001;
chVEL = 2;
}
else {
DRIVE_KP_VEL = 0.001;
chVEL = 1;
}
}
*/
// Other CAN IDs
public static final int PDP_CAN = 1, PCM_MODULE = 0;
// Controller ports
Expand Down Expand Up @@ -111,7 +125,7 @@ public class FullMap {
DRIVE_FF_KS = 0.15084,
DRIVE_FF_KV = 2.4303,
DRIVE_FF_KA = 0.5323;

//if changeVEL being used change from constant to changable variable
private FullMap() {}

@NotNull
Expand Down
Loading

0 comments on commit a9c6734

Please sign in to comment.