public static byte runModeToFlag(RunMode mode) {
   switch (C00141.f172a[mode.ordinal()]) {
     case MAX_MOTOR /*2*/:
       return POWER_BREAK;
     case CHANNEL_MODE_MASK_SELECTION /*3*/:
       return CHANNEL_MODE_FLAG_SELECT_RUN_TO_POSITION;
     case CHANNEL_MODE_MASK_LOCK /*4*/:
       return CHANNEL_MODE_FLAG_SELECT_RESET;
     default:
       return CHANNEL_MODE_FLAG_SELECT_RUN_CONSTANT_SPEED;
   }
 }
 static {
   f172a = new int[RunMode.values().length];
   try {
     f172a[RunMode.RUN_USING_ENCODERS.ordinal()] = ModernRoboticsUsbDcMotorController.MIN_MOTOR;
   } catch (NoSuchFieldError e) {
   }
   try {
     f172a[RunMode.RUN_WITHOUT_ENCODERS.ordinal()] =
         ModernRoboticsUsbDcMotorController.MAX_MOTOR;
   } catch (NoSuchFieldError e2) {
   }
   try {
     f172a[RunMode.RUN_TO_POSITION.ordinal()] =
         ModernRoboticsUsbDcMotorController.CHANNEL_MODE_MASK_SELECTION;
   } catch (NoSuchFieldError e3) {
   }
   try {
     f172a[RunMode.RESET_ENCODERS.ordinal()] =
         ModernRoboticsUsbDcMotorController.CHANNEL_MODE_MASK_LOCK;
   } catch (NoSuchFieldError e4) {
   }
 }