// Build output driver
int[][] frontChannels = glucose.mapping.buildFrontChannelList();
int[][] rearChannels = glucose.mapping.buildRearChannelList();
- int[][] flippedRGB = glucose.mapping.buildFlippedRGBList();
mappingTool = new MappingTool(glucose, frontChannels, rearChannels);
- pandaFront = new PandaDriver(new NetAddress("192.168.1.28", 9001), glucose.model, frontChannels, flippedRGB);
- pandaRear = new PandaDriver(new NetAddress("192.168.1.29", 9001), glucose.model, rearChannels, flippedRGB);
+ pandaFront = new PandaDriver(new NetAddress("192.168.1.28", 9001), glucose.model, frontChannels);
+ pandaRear = new PandaDriver(new NetAddress("192.168.1.29", 9001), glucose.model, rearChannels);
logTime("Build PandaDriver");
// Build overlay UI
// TODO(mcslee): move into GLucose engine
if (pandaBoardsEnabled) {
pandaFront.send(colors);
- pandaRear.send(colors);
+ // pandaRear.send(colors);
}
}
void drawCube(Cube c) {
- drawBox(c.x, c.y, c.z, c.rx, c.ry, c.rz, Cube.EDGE_WIDTH, Cube.EDGE_HEIGHT, Cube.EDGE_WIDTH, Cube.CHANNEL_WIDTH);
+ float in = .15;
+ drawBox(c.x+in, c.y+in, c.z+in, c.rx, c.ry, c.rz, Cube.EDGE_WIDTH-in*2, Cube.EDGE_HEIGHT-in*2, Cube.EDGE_WIDTH-in*2, Cube.CHANNEL_WIDTH-in);
}
void drawBox(float x, float y, float z, float rx, float ry, float rz, float xd, float yd, float zd, float sw) {