Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 3845e11

Browse files
committed
Move Autonomous.getFMS from AutonomousInterface to Autonomous
for conistency and non-grossocity
1 parent 8fa947f commit 3845e11

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/Autonomous.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.usfirst.frc.team199.Robot2018.commands;
22

3+
import edu.wpi.first.wpilibj.DriverStation;
34
import edu.wpi.first.wpilibj.command.CommandGroup;
45

56
/**
@@ -55,7 +56,15 @@ public double getDelay() {
5556
// TODO
5657
return 0;
5758
}
58-
59+
60+
/**
61+
* {@inheritDoc}
62+
*/
63+
@Override
64+
public String getFMS() {
65+
return DriverStation.getInstance().getGameSpecificMessage();
66+
}
67+
5968
/**
6069
* {@inheritDoc}
6170
*/

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/AutonomousInterface.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ public enum Strategy {
4747
*
4848
* @return FMS data
4949
*/
50-
default String getFMS() {
51-
return DriverStation.getInstance().getGameSpecificMessage();
52-
}
50+
public String getFMS();
5351

5452
/**
5553
* Pick the script to run for Autonomous

0 commit comments

Comments
 (0)