- List<Integer> pointList = buildMappedList(model, channelList);
- points = new int[pointList.size()];
- int i = 0;
- for (int value : pointList) {
- points[i++] = value;
+ points = new int[PandaMapping.PIXELS_PER_BOARD];
+ for (int i = 0; i < points.length; ++i) {
+ points[i] = 0;
+ }
+ }
+
+ public PandaDriver(String ip, int[] pointList) {
+ this(ip);
+ for (int i = 0; i < pointList.length && i < points.length; ++i) {
+ this.points[i] = pointList[i];