Beispiel #1
0
 public MatchDataSender(NetworkTableInstance inst)
 {
     table        = inst.GetTable("FMSInfo");
     typeMetadata = table.GetEntry(".type");
     typeMetadata.ForceSetString("FMSInfo");
     gameSpecificMessage = table.GetEntry("GameSpecificMessage");
     gameSpecificMessage.ForceSetString("");
     eventName = table.GetEntry("EventName");
     eventName.ForceSetString("");
     matchNumber = table.GetEntry("MatchNumber");
     matchNumber.ForceSetDouble(0);
     replayNumber = table.GetEntry("ReplayNumber");
     replayNumber.ForceSetDouble(0);
     matchType = table.GetEntry("MatchType");
     matchType.ForceSetDouble(0);
     alliance = table.GetEntry("IsRedAlliance");
     alliance.ForceSetBoolean(true);
     station = table.GetEntry("StationNumber");
     station.ForceSetDouble(1);
     controlWord = table.GetEntry("FMSControlData");
     controlWord.ForceSetDouble(0);
 }
Beispiel #2
0
 public void SelectTab(string title)
 {
     m_selectedTabEntry.ForceSetString(title);
 }