Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        NetworkTableInstance inst = NetworkTableInstance.Default;

        inst.StartClientTeam(2903);
        inst.StartDSClient();
        orbSlamTable = inst.GetTable("orbslam2");
        tensorTable  = inst.GetTable("tensorflow");
        sensorTable  = inst.GetTable("sensortable");
    }
Exemplo n.º 2
0
 internal ShuffleboardInstance(NetworkTableInstance ntInstance)
 {
     m_rootTable        = ntInstance.GetTable(Shuffleboard.kBaseTableName);
     m_rootMetaTable    = m_rootTable.GetSubTable(".metadata");
     m_selectedTabEntry = m_rootMetaTable.GetEntry("Selected");
     UsageReporting.Report(ResourceType.Shuffleboard, 0);
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
0
 internal RecordingController(NetworkTableInstance ntInstance)
 {
     m_recordingControlEntry        = ntInstance.GetEntry(RecordingControlKey);
     m_recordingFileNameFormatEntry = ntInstance.GetEntry(RecordingFileNameFormatKey);
     m_eventsTable = ntInstance.GetTable(EventMarkerTableName);
 }