コード例 #1
0
 private void m54a(SerialNumber serialNumber, String str) {
   LegacyModuleControllerConfiguration legacyModuleControllerConfiguration =
       (LegacyModuleControllerConfiguration) this.f101e.get(serialNumber);
   legacyModuleControllerConfiguration.setName(str);
   DeviceConfiguration a = m47a(ConfigurationType.IR_SEEKER, "ir_seeker", 2);
   DeviceConfiguration a2 = m47a(ConfigurationType.LIGHT_SENSOR, "light_sensor", 3);
   List arrayList = new ArrayList();
   for (int i = 0; i < 6; i++) {
     if (i == 2) {
       arrayList.add(a);
     }
     if (i == 3) {
       arrayList.add(a2);
     } else {
       arrayList.add(new DeviceConfiguration(i));
     }
   }
   legacyModuleControllerConfiguration.addDevices(arrayList);
 }
コード例 #2
0
 private void m58b(SerialNumber serialNumber, String str) {
   LegacyModuleControllerConfiguration legacyModuleControllerConfiguration =
       (LegacyModuleControllerConfiguration) this.f101e.get(serialNumber);
   legacyModuleControllerConfiguration.setName(str);
   MotorControllerConfiguration a =
       m48a(ControllerConfiguration.NO_SERIAL_NUMBER, "motor_1", "motor_2", "wheels");
   a.setPort(0);
   ServoControllerConfiguration a2 =
       m49a(ControllerConfiguration.NO_SERIAL_NUMBER, m65f(), "servos");
   a2.setPort(1);
   DeviceConfiguration a3 = m47a(ConfigurationType.IR_SEEKER, "ir_seeker", 2);
   DeviceConfiguration a4 = m47a(ConfigurationType.LIGHT_SENSOR, "light_sensor", 3);
   List arrayList = new ArrayList();
   arrayList.add(a);
   arrayList.add(a2);
   arrayList.add(a3);
   arrayList.add(a4);
   for (int i = 4; i < 6; i++) {
     arrayList.add(new DeviceConfiguration(i));
   }
   legacyModuleControllerConfiguration.addDevices(arrayList);
 }