Esempio n. 1
0
 public void setPacket(bool reset, bool restart, bool fms,
                       bool estop, bool enabled, ControlMode mode, AllianceStation station)
 {
     wantReset    = reset; wantRestart = restart; wantFMS = fms;
     wantEstop    = estop; wantEnabled = enabled; this.mode = mode;
     this.station = station;
 }
Esempio n. 2
0
 public SendingPacket()
 {
     wantReset = false; wantRestart = false; wantFMS = false;
     wantEstop = false; wantEnabled = false; mode = ControlMode.TELEOP;
     station   = AllianceStation.RED1;
     tags      = new List <Tag>();
 }
Esempio n. 3
0
 public SendingPacket(bool reset, bool restart, bool fms,
                      bool estop, bool enabled, ControlMode mode, AllianceStation station)
 {
     wantReset    = reset; wantRestart = restart; wantFMS = fms;
     wantEstop    = estop; wantEnabled = enabled; this.mode = mode;
     this.station = station;
     tags         = new List <Tag>();
 }
        /// <summary>
        /// Selected team alliance station
        /// </summary>
        /// <param name="teamStation"></param>
        public void TeamStation(int teamStation)
        {
            switch (teamStation)
            {
            case 0:
                allianceStation = AllianceStation.Red1;
                Debug.Log(allianceStation);
                break;

            case 1:
                allianceStation = AllianceStation.Red2;
                Debug.Log(allianceStation);
                break;

            case 2:
                allianceStation = AllianceStation.Red3;
                Debug.Log(allianceStation);
                break;

            case 3:
                allianceStation = AllianceStation.Blue1;
                Debug.Log(allianceStation);
                break;

            case 4:
                allianceStation = AllianceStation.Blue2;
                Debug.Log(allianceStation);
                break;

            case 5:
                allianceStation = AllianceStation.Blue3;
                Debug.Log(allianceStation);
                break;

            default:
                allianceStation = AllianceStation.Red1;
                break;
            }
        }
 // Use this for initialization
 void Start()
 {
     background      = GetComponent <Image>();
     allianceStation = GetComponentInParent <AllianceStation>();
 }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     childText       = GetComponentInChildren <Text>();
     allianceStation = GetComponentInParent <AllianceStation>();
 }
Esempio n. 7
0
 public void setStation(AllianceStation station)
 {
     this.station = station;
 }