+/**
+ * Mappings for the output drivers. Can mix grizzly boards with
+ * panda boards in here no problem.
+ */
+IPOutput[] buildOutputs() throws SocketException, UnknownHostException {
+ return new IPOutput[] {
+// new GrizzlyOutput(lx, "192.168.88.100", 0, 0, 0, 39, 38, 40, 0, 37, 35, 0, 21, 20, 22, 0, 33, 32 ),
+// new GrizzlyOutput(lx, "192.168.88.104", 0, 13, 12, 0, 1, 2, 6, 5, 7, 0, 0, 4, 3, 9, 10, 11 ),
+// new GrizzlyOutput(lx, "192.168.88.105", 42, 41, 0, 43, 45, 44, 0, 0, 0, 0, 0, 0, 0, 24, 23, 25 ),
+// new GrizzlyOutput(lx, "192.168.88.107", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),
+
+ new PandaOutput(lx, "10.200.1.29", new String[][] {
+ new String[] { "00", "00", "00", "00" }, // 1
+ new String[] { "00", "00", "00", "00" }, // 2
+ new String[] { "E1", "E2", "E3", "E4" }, // 3
+ new String[] { "E5", "E6", "D5", "D6" }, // 4
+ new String[] { "H2", "H3", "H4", "H5" }, // 5
+ new String[] { "G1", "G2", "G3", "G4" }, // 6
+ new String[] { "00", "00", "00", "00" }, // 7
+ new String[] { "D1", "D2", "D3", "D4" }, // 8
+ }),
+
+ new PandaOutput(lx, "10.200.1.30", new String[][] {
+ new String[] { "00", "00", "00", "00" }, // 1
+ new String[] { "J1", "J2", "J3", "00" }, // 2
+ new String[] { "B1", "B2", "B3", "B4" }, // 3
+ new String[] { "K1", "K2", "K3", "00" }, // 4
+ new String[] { "F1", "F2", "F3", "F4" }, // 5
+ new String[] { "L1", "L2", "L3", "L4" }, // 6
+ new String[] { "C1", "C2", "C3", "C4" }, // 7
+ new String[] { "I1", "I2", "I3", "I4" }, // 8
+ }),
+
+ new PandaOutput(lx, "10.200.1.31", new String[][] {
+ new String[] { "00", "00", "00", "00" }, // 1
+ new String[] { "00", "00", "00", "00" }, // 2
+ new String[] { "A1", "A2", "A3", "A4" }, // 3
+ new String[] { "M1", "M2", "M3", "00" }, // 4
+ new String[] { "N1", "N2", "O1", "O2" }, // 5
+ new String[] { "C5", "F5", "F6", "I5" }, // 6
+ new String[] { "P1", "P2", "P3", "00" }, // 7
+ new String[] { "Q1", "Q2", "R1", "R2" }, // 8
+ }),
+
+ };
+}
+
+static class TowerConfig {
+ public final String id;
+ public final float x;
+ public final float z;
+ public final float base;
+ public final int numCubes;
+
+ public TowerConfig(String id, float z, float x, float base, int numCubes) {
+ this.id = id;
+ this.x = x;
+ this.z = z;
+ this.base = base;
+ this.numCubes = numCubes;
+ }
+}
+