final int DEBUG_STATE_OFF = 2;
DebugUI(PandaMapping[] pandaMappings) {
- int totalChannels = 0;
- for (PandaMapping pm : pandaMappings) {
- totalChannels += pm.channelList.length;
- }
+ int totalChannels = pandaMappings.length * PandaMapping.CHANNELS_PER_BOARD;
channelList = new int[totalChannels][];
int channelIndex = 0;
for (PandaMapping pm : pandaMappings) {
}
}
- void draw() {
+ void draw() {
noStroke();
int xBase = debugX;
int yPos = debugY;
boolean first = true;
int cubeNum = 0;
for (int cube : channel) {
- if (cube == 0) {
+ if (cube <= 0) {
break;
}
xPos += debugXSpacing;