Skip to content

Commit

Permalink
Working match time output
Browse files Browse the repository at this point in the history
The match time output works, ready to merge.
  • Loading branch information
KyleRAnderson committed Apr 9, 2019
1 parent e9c6679 commit 7ed5f8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/ca/team2706/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,14 @@ public void robotPeriodic() {
*/
public static double getMatchTime() {
final double time;
if (DriverStation.getInstance().isAutonomous()) {
if (DriverStation.getInstance().isDisabled()) {
time = 0;
} else if (DriverStation.getInstance().isAutonomous()) {
time = Timer.getMatchTime() + 135;
} else if (DriverStation.getInstance().isOperatorControl()) {
time = Timer.getMatchTime();
} else {
time = Timer.getMatchTime();
time = 0;
}

return time;
Expand Down

0 comments on commit 7ed5f8e

Please sign in to comment.