Skip to content

Commit

Permalink
Get drive working
Browse files Browse the repository at this point in the history
Still needs more work
  • Loading branch information
camearle20 committed Jan 27, 2024
1 parent 9bd01eb commit ec94be5
Show file tree
Hide file tree
Showing 20 changed files with 983 additions and 1,040 deletions.
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ tasks.register('eventDeploy') {
commandLine 'git', 'commit', '-m', commitMessage
}

//'git add -A'.execute()
// commandLine 'git', 'add', '-A'

println "Deployed to branch: '$branch'"
println "Commit message: '$commitMessage'"
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
public final class Constants {
public static final int loopPeriodMs = 20;
private static RobotType robotType = RobotType.SIMBOT;
private static RobotType robotType = RobotType.RAINBOWT;
public static final boolean tuningMode = true;
public static final boolean characterizationMode = false;

Expand Down
7 changes: 3 additions & 4 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
import edu.wpi.first.wpilibj.simulation.DriverStationSim;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import frc.robot.util.VirtualSubsystem;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;

import frc.robot.util.VirtualSubsystem;
import org.littletonrobotics.junction.LogFileUtil;
import org.littletonrobotics.junction.LoggedRobot;
import org.littletonrobotics.junction.Logger;
Expand Down Expand Up @@ -147,10 +146,10 @@ public void robotPeriodic() {
if (!autoCommand.isScheduled() && !autoMessagePrinted) {
if (DriverStation.isAutonomousEnabled()) {
System.out.printf(
"*** Auto finished in %.2f secs ***%n", Timer.getFPGATimestamp() - autoStart);
"*** Auto finished in %.2f secs ***%n", Timer.getFPGATimestamp() - autoStart);
} else {
System.out.printf(
"*** Auto cancelled in %.2f secs ***%n", Timer.getFPGATimestamp() - autoStart);
"*** Auto cancelled in %.2f secs ***%n", Timer.getFPGATimestamp() - autoStart);
}
autoMessagePrinted = true;
}
Expand Down
Loading

0 comments on commit ec94be5

Please sign in to comment.