public boolean channelModeBlue = false;
private final int numChannels;
-
- private final PandaMapping[] pandaMappings;
- private PandaMapping activePanda;
- private ChannelMapping activeChannel;
-
- MappingTool(GLucose glucose, PandaMapping[] pandaMappings) {
+
+ MappingTool(GLucose glucose) {
super(glucose);
- this.pandaMappings = pandaMappings;
- numChannels = pandaMappings.length * PandaMapping.CHANNELS_PER_BOARD;
+ // TODO(mcslee): port channels to grizzly
+ numChannels = 0;
setChannel();
}
}
private void setChannel() {
- activePanda = pandaMappings[channelIndex / PandaMapping.CHANNELS_PER_BOARD];
- activeChannel = activePanda.channelList[channelIndex % PandaMapping.CHANNELS_PER_BOARD];
+ // TODO(mcslee): port to grizzly
}
private int indexOfCubeInChannel(Cube c) {
- if (activeChannel.mode == ChannelMapping.MODE_CUBES) {
- int i = 1;
- for (int index : activeChannel.objectIndices) {
- if ((index >= 0) && (c == model.getCubeByRawIndex(index))) {
- return i;
- }
- ++i;
- }
- }
- return 0;
+ // TODO(mcslee): port to grizzly
+ return -1;
}
private void printInfo() {
}
public void setChannel(int index) {
- channelIndex = index % numChannels;
+ if (numChannels > 0) {
+ channelIndex = index % numChannels;
+ }
setChannel();
}