Skip to content

Commit

Permalink
Did stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-Mengistie committed Mar 3, 2022
1 parent e01223e commit 6bc684d
Show file tree
Hide file tree
Showing 4 changed files with 418 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 io.github.oblarg.oblog.Logger;
import org.jetbrains.annotations.NotNull;
Expand All @@ -20,7 +21,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 @@ -25,8 +25,8 @@ public Cargo2022(
}

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

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

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

public void stop() {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/frc/team449/javaMaps/FullMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ 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;
/*
Expand Down Expand Up @@ -406,4 +406,4 @@ private static Trajectory loadPathPlannerTraj(@NotNull String trajName) {
}
return traj;
}
}
}
Loading

0 comments on commit 6bc684d

Please sign in to comment.