-
- private final int numChannels;
-
- private final PandaMapping[] pandaMappings;
- private PandaMapping activePanda;
- private ChannelMapping activeChannel;
-
- MappingTool(GLucose glucose, PandaMapping[] pandaMappings) {
- super(glucose);
- this.pandaMappings = pandaMappings;
- numChannels = pandaMappings.length * PandaMapping.CHANNELS_PER_BOARD;
- setChannel();
- }
-
- private void setChannel() {
- activePanda = pandaMappings[channelIndex / PandaMapping.CHANNELS_PER_BOARD];
- activeChannel = activePanda.channelList[channelIndex % PandaMapping.CHANNELS_PER_BOARD];