Adds field IP to round robin list (#187)

With how many more coprocessors are being added, this is probably needed
to make the field crew sane.
This commit is contained in:
Thad House
2017-02-09 00:55:01 -08:00
committed by Peter Johnson
parent 13457d1bf4
commit e6656326a8
2 changed files with 11 additions and 2 deletions

View File

@@ -90,11 +90,12 @@ public class NetworkTable implements ITable, IRemote {
* @param team the team number
*/
public synchronized static void setTeam(int team) {
String[] addresses = new String[4];
String[] addresses = new String[5];
addresses[0] = "10." + (int)(team / 100) + "." + (int)(team % 100) + ".2";
addresses[1] = "172.22.11.2";
addresses[2] = "roboRIO-" + team + "-FRC.local";
addresses[3] = "roboRIO-" + team + "-FRC.lan";
addresses[4] = "roboRIO-" + team + "-FRC.frc-field.local";
setIPAddress(addresses);
}