Ensure we use authoritative game data by always getting it from the FMS via getGameSPecificMessage().
Acceptance Criteria
[ ] Static method in GameData that wraps DriverStation.getInstance().getGameSpecificMessage(); and ensures we get a valid string. Suggest returning "XXX" or "---" if getGameSpecificMessage(); returns a bad value
[ ] All uses of GameData.toString() replaced with the new static wrapper, so we know we are getting the most up-to-date value. Replace in:
[ ] Robot.autonomousInit()
[ ] ShuffleDash.updateDash()
[ ] GameData.getInstance() method and private static gameData; removed entirely.
[ ] AutonCommand constructor instantiates a new GameData instance
Goal
Ensure we use authoritative game data by always getting it from the FMS via
getGameSPecificMessage()
.Acceptance Criteria
GameData
that wrapsDriverStation.getInstance().getGameSpecificMessage();
and ensures we get a valid string. Suggest returning"XXX"
or"---"
ifgetGameSpecificMessage();
returns a bad valueGameData.toString()
replaced with the new static wrapper, so we know we are getting the most up-to-date value. Replace in:Robot.autonomousInit()
ShuffleDash.updateDash()
GameData.getInstance()
method andprivate static gameData;
removed entirely.AutonCommand
constructor instantiates a newGameData
instance