Skip to content

Commit 5ec6eb0

Browse files
author
Roberts Kalnins
committed
Remove timing
1 parent 736e526 commit 5ec6eb0

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/main/java/frc/team2767/deepspace/Robot.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ public class Robot extends TimedRobot {
3333
public static StartLevel startLevel = StartLevel.ONE;
3434
private static AutonChooser AUTON;
3535
private static boolean isEvent;
36-
private static CommandGroup sandstorm;
3736
private static CommandGroup noAutoSandstorm;
38-
private Logger logger;
3937

4038
public static boolean isEvent() {
4139
return isEvent;
@@ -51,7 +49,6 @@ public void robotInit() {
5149
System.out.println("Event flag removed - switching logging to log file");
5250
System.setProperty(ContextInitializer.CONFIG_FILE_PROPERTY, "logback-event.xml");
5351
}
54-
logger = LoggerFactory.getLogger(this.getClass());
5552

5653
TELEMETRY = new TelemetryService(TelemetryController::new);
5754
DRIVE = new DriveSubsystem();
@@ -77,7 +74,6 @@ public void robotInit() {
7774
BISCUIT.zero();
7875
INTAKE.zero();
7976

80-
sandstorm = new SandstormCommandGroup();
8177
noAutoSandstorm = new SandstormHatchPickupCommandGroup();
8278

8379
SmartDashboard.putBoolean("Game/SandstormPickUp", false);

src/main/java/frc/team2767/deepspace/command/approach/VisionAutoAlignPickupCommand.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ protected void initialize() {
7070
@SuppressWarnings("Duplicates")
7171
@Override
7272
protected void execute() {
73-
double start = Timer.getFPGATimestamp();
74-
// logger.info("time = {}", (time - last) * 1000);
75-
// last = time;
76-
7773
// Pyeye Method:
7874
VISION.queryPyeye(); // gets corrected heading and range from NT
7975
range = VISION.getRawRange();
@@ -110,11 +106,7 @@ protected void execute() {
110106

111107
double strafeOutput = strafeRateLimit.apply(strafe);
112108

113-
double middle = Timer.getFPGATimestamp();
114109
DRIVE.drive(forward, strafeOutput, yaw);
115-
double end = Timer.getFPGATimestamp();
116-
117-
logger.debug("{}\t{}\t{}", start, middle, end);
118110
}
119111

120112
@Override

0 commit comments

Comments
 (0)