+ private static final int NO_POINT = -1;
+
+ ////////////////////////////////////////////////////////////////
+ //
+ // READ THIS RIGHT NOW BEFORE YOU MODIFY THE BELOW!!!!!!!!!!!!!
+ // READ THIS RIGHT NOW BEFORE YOU MODIFY THE BELOW!!!!!!!!!!!!!
+ // READ THIS RIGHT NOW BEFORE YOU MODIFY THE BELOW!!!!!!!!!!!!!
+ //
+ // The mappings below indicate the physical order of strips
+ // connected to a pandaboard channel. The strip numbers are a
+ // reflection of how the model is built.
+ //
+ // For ANYTHING in the model which is a rectangular prism,
+ // which means Cubes, the BassBox, and each Speaker, the
+ // strips are numbered incrementally by face. The first
+ // face is always the FRONT, which you are looking at.
+ // The next face is the RIGHT, then the BACK, then the LEFT.
+ //
+ // For every face, the strips are ordered numerically moving
+ // clockwise from the the TOP LEFT.
+ //
+ // So, for a cube:
+ //
+ // Strip 0: front face, top strip, left to right
+ // Strip 1: front face, right strip, top to bottom
+ // Strip 2: front face, bottom strip, right to left
+ // Strip 3: front face, left strip, bottom to top
+ //
+ // Strip 4: right face, top strip, left to right
+ // ... and so on
+ // Strip 14: left face, bottom strip, right to left
+ // Strip 15: left face, left strip, bottom to top
+ //
+ ////////////////////////////////////////////////////////////////
+
+ private final static int FORWARD = -1;
+ private final static int BACKWARD = -2;
+
+ /**
+ * These constant arrays indicate the order in which the strips of a cube
+ * are wired. There are four different options, depending on which bottom
+ * corner of the cube the data wire comes in.
+ */
+ private final static int[][] CUBE_STRIP_ORDERINGS = new int[][] {
+// { 2, 1, 0, 3, 13, 12, 15, 14, 4, 7, 6, 5, 11, 10, 9, 8 }, // FRONT_LEFT
+// { 6, 5, 4, 7, 1, 0, 3, 2, 8, 11, 10, 9, 15, 14, 13, 12 }, // FRONT_RIGHT
+// { 14, 13, 12, 15, 9, 8, 11, 10, 0, 3, 2, 1, 7, 6, 5, 4 }, // REAR_LEFT
+// { 10, 9, 8, 11, 5, 4, 7, 6, 12, 15, 14, 13, 3, 2, 1, 0 }, // REAR_RIGHT