From ddeb62ed19e21b6667e6e6f0465b985a064c529d Mon Sep 17 00:00:00 2001 From: David Sargent Date: Wed, 14 Oct 2015 14:03:14 -0500 Subject: [PATCH 1/3] Get a working build --- FtcRobotController/.idea/gradle.xml | 5 +- FtcRobotController/.idea/modules.xml | 3 + FtcRobotController/WirelessP2p/.gitignore | 1 + .../WirelessP2p/WirelessP2p.iml | 94 ++ FtcRobotController/WirelessP2p/build.gradle | 26 + .../WirelessP2p/proguard-rules.pro | 17 + .../qualcomm/wirelessP2p/ApplicationTest.java | 13 + .../WirelessP2p/src/main/AndroidManifest.xml | 12 + .../WifiDirectChannelSelection.java | 104 ++ .../src/main/res/values/strings.xml | 3 + .../qualcomm/wirelessP2p/ExampleUnitTest.java | 15 + FtcRobotController/app/app.iml | 11 +- FtcRobotController/app/build.gradle | 55 +- .../app/src/main/AndroidManifest.xml | 42 +- .../java/com/ftdi/j2xx/BulkInRunnable.java | 100 -- .../main/java/com/ftdi/j2xx/D2xxManager.java | 613 ---------- .../main/java/com/ftdi/j2xx/FT_Device.java | 1066 ---------------- .../main/java/com/ftdi/j2xx/FT_EEPROM.java | 15 - .../java/com/ftdi/j2xx/FT_EEPROM_2232D.java | 20 - .../java/com/ftdi/j2xx/FT_EEPROM_2232H.java | 35 - .../java/com/ftdi/j2xx/FT_EEPROM_232H.java | 39 - .../java/com/ftdi/j2xx/FT_EEPROM_232R.java | 25 - .../java/com/ftdi/j2xx/FT_EEPROM_245R.java | 25 - .../java/com/ftdi/j2xx/FT_EEPROM_4232H.java | 38 - .../com/ftdi/j2xx/FT_EEPROM_X_Series.java | 47 - .../com/ftdi/j2xx/ProcessRequestRunnable.java | 38 - .../app/src/main/java/com/ftdi/j2xx/a.java | 102 -- .../app/src/main/java/com/ftdi/j2xx/b.java | 271 ----- .../app/src/main/java/com/ftdi/j2xx/c.java | 478 -------- .../app/src/main/java/com/ftdi/j2xx/d.java | 267 ---- .../app/src/main/java/com/ftdi/j2xx/e.java | 161 --- .../app/src/main/java/com/ftdi/j2xx/f.java | 161 --- .../com/ftdi/j2xx/ft4222/FT_4222_Defines.java | 210 ---- .../com/ftdi/j2xx/ft4222/FT_4222_Device.java | 129 -- .../com/ftdi/j2xx/ft4222/FT_4222_Gpio.java | 226 ---- .../ftdi/j2xx/ft4222/FT_4222_I2c_Master.java | 217 ---- .../ftdi/j2xx/ft4222/FT_4222_I2c_Slave.java | 166 --- .../ftdi/j2xx/ft4222/FT_4222_Spi_Master.java | 367 ------ .../ftdi/j2xx/ft4222/FT_4222_Spi_Slave.java | 176 --- .../src/main/java/com/ftdi/j2xx/ft4222/a.java | 9 - .../src/main/java/com/ftdi/j2xx/ft4222/b.java | 31 - .../src/main/java/com/ftdi/j2xx/ft4222/c.java | 7 - .../src/main/java/com/ftdi/j2xx/ft4222/d.java | 10 - .../src/main/java/com/ftdi/j2xx/ft4222/e.java | 7 - .../app/src/main/java/com/ftdi/j2xx/g.java | 381 ------ .../app/src/main/java/com/ftdi/j2xx/h.java | 343 ------ .../app/src/main/java/com/ftdi/j2xx/i.java | 342 ------ .../java/com/ftdi/j2xx/interfaces/Gpio.java | 9 - .../com/ftdi/j2xx/interfaces/I2cMaster.java | 11 - .../com/ftdi/j2xx/interfaces/I2cSlave.java | 15 - .../com/ftdi/j2xx/interfaces/SpiMaster.java | 17 - .../com/ftdi/j2xx/interfaces/SpiSlave.java | 13 - .../app/src/main/java/com/ftdi/j2xx/j.java | 466 ------- .../app/src/main/java/com/ftdi/j2xx/k.java | 290 ----- .../app/src/main/java/com/ftdi/j2xx/l.java | 564 --------- .../app/src/main/java/com/ftdi/j2xx/m.java | 55 - .../app/src/main/java/com/ftdi/j2xx/n.java | 66 - .../app/src/main/java/com/ftdi/j2xx/o.java | 477 -------- .../app/src/main/java/com/ftdi/j2xx/p.java | 40 - .../com/ftdi/j2xx/protocol/FT_Spi_Slave.java | 368 ------ .../com/ftdi/j2xx/protocol/SpiSlaveEvent.java | 57 - .../ftdi/j2xx/protocol/SpiSlaveListener.java | 7 - .../j2xx/protocol/SpiSlaveRequestEvent.java | 14 - .../j2xx/protocol/SpiSlaveResponseEvent.java | 21 - .../ftdi/j2xx/protocol/SpiSlaveThread.java | 38 - .../app/src/main/java/com/ftdi/j2xx/q.java | 5 - .../app/src/main/java/com/ftdi/j2xx/r.java | 8 - .../com/qualcomm/WirelessP2p/BuildConfig.java | 10 - .../main/java/com/qualcomm/WirelessP2p/R.java | 24 - .../WifiDirectChannelSelection.java | 102 -- .../com/qualcomm/analytics/Analytics.java | 248 ++-- .../qualcomm/analyticsmodule/BuildConfig.java | 10 - .../com/qualcomm/ftccommon/AboutActivity.java | 14 +- .../com/qualcomm/ftccommon/BuildConfig.java | 10 - .../ftccommon/FtcRobotControllerService.java | 15 +- .../FtcWifiChannelSelectorActivity.java | 15 +- .../main/java/com/qualcomm/ftccommon/R.java | 2 + .../java/com/qualcomm/ftccommon/UpdateUI.java | 15 +- .../EditAnalogInputDevicesActivity.java | 17 +- .../EditAnalogOutputDevicesActivity.java | 16 +- .../EditDigitalDevicesActivity.java | 17 +- .../configuration/EditI2cDevicesActivity.java | 16 +- .../EditLegacyModuleControllerActivity.java | 26 +- .../EditMatrixControllerActivity.java | 16 +- .../configuration/EditPWMDevicesActivity.java | 17 +- .../EditServoControllerActivity.java | 14 +- .../FtcConfigurationActivity.java | 53 +- .../ftcdriverstation/BuildConfig.java | 10 - .../FtcDriverStationActivity.java | 1072 ----------------- .../FtcPairWifiDirectActivity.java | 153 --- .../OpModeSelectionDialogFragment.java | 50 - .../java/com/qualcomm/ftcdriverstation/R.java | 497 -------- .../ftcdriverstation/SettingsActivity.java | 20 - .../ftcrobotcontroller/BuildConfig.java | 10 - .../FtcRobotControllerActivity.java | 291 ----- .../com/qualcomm/ftcrobotcontroller/R.java | 423 ------- .../opmodes/AdafruitRGBExample.java | 62 - .../opmodes/ColorSensorDriver.java | 95 -- .../opmodes/CompassCalibration.java | 72 -- .../opmodes/FtcOpModeRegister.java | 17 - .../opmodes/IrSeekerOp.java | 53 - .../opmodes/K9AutoTime.java | 65 - .../opmodes/K9IrSeeker.java | 75 -- .../ftcrobotcontroller/opmodes/K9Line.java | 55 - .../opmodes/K9TankDrive.java | 108 -- .../ftcrobotcontroller/opmodes/K9TeleOp.java | 99 -- .../opmodes/LinearI2cAddressChange.java | 124 -- .../opmodes/LinearIrExample.java | 47 - .../opmodes/LinearK9TeleOp.java | 56 - .../ftcrobotcontroller/opmodes/NullOp.java | 25 - .../ftcrobotcontroller/opmodes/NxtTeleOp.java | 120 -- .../opmodes/PushBotAuto.java | 65 - .../opmodes/PushBotAutoSensors.java | 81 -- .../opmodes/PushBotDriveTouch.java | 33 - .../opmodes/PushBotHardware.java | 351 ------ .../opmodes/PushBotHardwareSensors.java | 139 --- .../opmodes/PushBotIrEvent.java | 20 - .../opmodes/PushBotIrSeek.java | 42 - .../opmodes/PushBotManual.java | 20 - .../opmodes/PushBotManual1.java | 22 - .../opmodes/PushBotManualSensors.java | 40 - .../opmodes/PushBotOdsDetectEvent.java | 15 - .../opmodes/PushBotOdsFollowEvent.java | 15 - .../opmodes/PushBotSquare.java | 31 - .../opmodes/PushBotTelemetry.java | 34 - .../opmodes/PushBotTelemetrySensors.java | 17 - .../opmodes/PushBotTouchEvent.java | 15 - .../com/qualcomm/hardware/BuildConfig.java | 10 - .../hardware/HiTechnicNxtColorSensor.java | 22 +- .../HiTechnicNxtDcMotorController.java | 106 +- .../hardware/HiTechnicNxtIrSeekerSensor.java | 90 +- .../hardware/HiTechnicNxtLightSensor.java | 3 +- .../hardware/MatrixDcMotorController.java | 39 +- .../hardware/MatrixI2cTransaction.java | 32 +- .../hardware/MatrixMasterController.java | 41 +- .../hardware/MatrixServoController.java | 11 +- .../hardware/ModernRoboticsDeviceManager.java | 83 +- .../ModernRoboticsHardwareFactory.java | 29 +- .../ModernRoboticsI2cColorSensor.java | 22 +- .../ModernRoboticsI2cIrSeekerSensorV3.java | 54 +- .../ModernRoboticsUsbDcMotorController.java | 46 +- .../ModernRoboticsUsbLegacyModule.java | 15 +- .../main/java/com/qualcomm/hardware/R.java | 2 + .../hardware/ReadWriteRunnableBlocking.java | 5 +- .../hardware/ReadWriteRunnableStandard.java | 37 +- .../qualcomm/modernrobotics/BuildConfig.java | 10 - .../java/com/qualcomm/modernrobotics/R.java | 2 + .../com/qualcomm/robotcore/BuildConfig.java | 10 - .../main/java/com/qualcomm/robotcore/R.java | 24 - .../robotcore/eventloop/EventLoop.java | 18 - .../robotcore/eventloop/opmode/OpMode.java | 41 - .../eventloop/opmode/OpModeRegister.java | 7 - .../exception/RobotCoreException.java | 22 - .../RobotCoreNonResponsiveException.java | 9 - .../robotcore/factory/RobotFactory.java | 17 - .../hardware/AccelerationSensor.java | 34 - .../robotcore/hardware/AnalogInput.java | 33 - .../robotcore/hardware/AnalogOutput.java | 41 - .../hardware/AnalogOutputController.java | 14 - .../robotcore/hardware/ColorSensor.java | 22 - .../robotcore/hardware/CompassSensor.java | 27 - .../qualcomm/robotcore/hardware/DcMotor.java | 136 --- .../robotcore/hardware/DcMotorController.java | 52 - .../hardware/DeviceInterfaceModule.java | 23 - .../robotcore/hardware/DeviceManager.java | 109 -- .../robotcore/hardware/DigitalChannel.java | 45 - .../hardware/DigitalChannelController.java | 25 - .../robotcore/hardware/GyroSensor.java | 14 - .../robotcore/hardware/HardwareDevice.java | 11 - .../robotcore/hardware/HardwareMap.java | 134 --- .../robotcore/hardware/I2cController.java | 62 - .../robotcore/hardware/I2cDevice.java | 121 -- .../robotcore/hardware/I2cDeviceReader.java | 30 - .../robotcore/hardware/IrSeekerSensor.java | 87 -- .../com/qualcomm/robotcore/hardware/LED.java | 34 - .../robotcore/hardware/LegacyModule.java | 14 - .../robotcore/hardware/LightSensor.java | 18 - .../hardware/OpticalDistanceSensor.java | 10 - .../robotcore/hardware/PWMOutput.java | 45 - .../hardware/PWMOutputController.java | 16 - .../qualcomm/robotcore/hardware/Servo.java | 105 -- .../robotcore/hardware/ServoController.java | 24 - .../robotcore/hardware/TouchSensor.java | 14 - .../hardware/TouchSensorMultiplexer.java | 9 - .../robotcore/hardware/UltrasonicSensor.java | 14 - .../ControllerConfiguration.java | 49 - .../configuration/DeviceConfiguration.java | 126 -- .../configuration/DeviceInfoAdapter.java | 53 - .../DeviceInterfaceModuleConfiguration.java | 58 - .../LegacyModuleControllerConfiguration.java | 12 - .../MatrixControllerConfiguration.java | 34 - .../configuration/MotorConfiguration.java | 21 - .../MotorControllerConfiguration.java | 26 - .../configuration/ReadXMLFileHandler.java | 439 ------- .../configuration/ServoConfiguration.java | 19 - .../ServoControllerConfiguration.java | 25 - .../hardware/configuration/Utility.java | 328 ----- .../configuration/WriteXMLFileHandler.java | 197 --- .../XMLConfigurationConstants.java | 24 - .../logitech/LogitechGamepadF310.java | 106 -- .../microsoft/MicrosoftGamepadXbox360.java | 18 - .../hardware/usb/RobotUsbDevice.java | 32 - .../hardware/usb/RobotUsbManager.java | 15 - .../hardware/usb/ftdi/RobotUsbDeviceFtdi.java | 64 - .../usb/ftdi/RobotUsbManagerFtdi.java | 46 - .../qualcomm/robotcore/robocol/Command.java | 129 -- .../qualcomm/robotcore/robocol/Heartbeat.java | 115 -- .../robotcore/robocol/PeerDiscovery.java | 95 -- .../robocol/PeerDiscoveryManager.java | 76 -- .../robotcore/robocol/RobocolConfig.java | 66 - .../robotcore/robocol/RobocolDatagram.java | 79 -- .../robocol/RobocolDatagramSocket.java | 117 -- .../robotcore/robocol/RobocolParsable.java | 53 - .../com/qualcomm/robotcore/robot/Robot.java | 39 - .../qualcomm/robotcore/robot/RobotState.java | 41 - .../qualcomm/robotcore/sensor/SensorBase.java | 24 - .../sensor/SensorImageLocalizer.java | 230 ---- .../robotcore/sensor/SensorTargetPose.java | 12 - .../qualcomm/robotcore/sensor/TargetInfo.java | 19 - .../qualcomm/robotcore/sensor/TargetSize.java | 17 - .../robotcore/sensor/TrackedTargetInfo.java | 15 - .../robotcore/util/BatteryChecker.java | 56 - .../robotcore/util/CurvedWheelMotion.java | 31 - .../DifferentialControlLoopCoefficients.java | 16 - .../com/qualcomm/robotcore/util/Dimmer.java | 65 - .../qualcomm/robotcore/util/ElapsedTime.java | 64 - .../robotcore/util/ExtractAssets.java | 34 - .../robotcore/util/GenericDialogFragment.java | 20 - .../com/qualcomm/robotcore/util/Hardware.java | 49 - .../robotcore/util/ImmersiveMode.java | 31 - .../com/qualcomm/robotcore/util/MapView.java | 207 ---- .../com/qualcomm/robotcore/util/MatrixD.java | 305 ----- .../com/qualcomm/robotcore/util/Network.java | 84 -- .../com/qualcomm/robotcore/util/Pose.java | 144 --- .../qualcomm/robotcore/util/PoseUtils.java | 33 - .../com/qualcomm/robotcore/util/Range.java | 23 - .../com/qualcomm/robotcore/util/RobotLog.java | 154 --- .../robotcore/util/RollingAverage.java | 46 - .../robotcore/util/RunShellCommand.java | 73 -- .../qualcomm/robotcore/util/SerialNumber.java | 49 - .../robotcore/util/TypeConversion.java | 83 -- .../com/qualcomm/robotcore/util/Util.java | 54 - .../com/qualcomm/robotcore/util/Version.java | 9 - .../robotcore/wifi/FixWifiDirectSetup.java | 17 - .../robotcore/wifi/WifiAssistant.java | 78 -- .../robotcore/wifi/WifiDirectAssistant.java | 508 -------- .../app/src/main/res/anim/fadein.xml | Bin 464 -> 0 bytes .../app/src/main/res/anim/fadeout.xml | Bin 464 -> 0 bytes .../res/drawable-hdpi-v4/button_shape.xml | Bin 1204 -> 0 bytes .../main/res/drawable-hdpi-v4/ic_launcher.png | Bin 4590 -> 0 bytes .../res/drawable-hdpi-v4/icon_battery0.png | Bin 462 -> 0 bytes .../res/drawable-hdpi-v4/icon_battery100.png | Bin 610 -> 0 bytes .../res/drawable-hdpi-v4/icon_battery25.png | Bin 519 -> 0 bytes .../res/drawable-hdpi-v4/icon_battery50.png | Bin 544 -> 0 bytes .../res/drawable-hdpi-v4/icon_battery75.png | Bin 561 -> 0 bytes .../main/res/drawable-hdpi-v4/icon_menu.png | Bin 113 -> 0 bytes .../drawable-hdpi-v4/icon_robotcontroller.png | Bin 3287 -> 0 bytes .../res/drawable-hdpi-v4/lib_button_shape.xml | 19 + .../main/res/drawable-mdpi-v4/ic_launcher.png | Bin 3796 -> 0 bytes .../res/drawable-xhdpi-v4/ic_launcher.png | Bin 6711 -> 0 bytes .../res/drawable-xhdpi-v4/icon_battery0.png | Bin 462 -> 0 bytes .../res/drawable-xhdpi-v4/icon_battery100.png | Bin 610 -> 0 bytes .../res/drawable-xhdpi-v4/icon_battery25.png | Bin 519 -> 0 bytes .../res/drawable-xhdpi-v4/icon_battery50.png | Bin 544 -> 0 bytes .../res/drawable-xhdpi-v4/icon_battery75.png | Bin 561 -> 0 bytes .../main/res/drawable-xhdpi-v4/icon_menu.png | Bin 113 -> 0 bytes .../icon_robotcontroller.png | Bin 3287 -> 0 bytes .../res/drawable-xxhdpi-v4/ic_launcher.png | Bin 11207 -> 0 bytes .../src/main/res/drawable/button_shape.xml | Bin 1204 -> 0 bytes .../app/src/main/res/layout/about.xml | 11 + .../src/main/res/layout/activity_about.xml | Bin 520 -> 0 bytes .../res/layout/activity_autoconfigure.xml | Bin 1972 -> 2421 bytes .../layout/activity_config_wifi_direct.xml | Bin 864 -> 861 bytes .../res/layout/activity_ftc_configuration.xml | Bin 3988 -> 5279 bytes .../res/layout/activity_ftc_controller.xml | Bin 3628 -> 0 bytes .../layout/activity_ftc_driver_station.xml | Bin 11592 -> 0 bytes .../layout/activity_ftc_pair_wifi_direct.xml | Bin 1544 -> 0 bytes .../activity_ftc_wifi_channel_selector.xml | Bin 1356 -> 1547 bytes .../app/src/main/res/layout/activity_load.xml | Bin 3324 -> 4156 bytes .../src/main/res/layout/activity_settings.xml | Bin 500 -> 0 bytes .../main/res/layout/activity_view_logs.xml | Bin 868 -> 859 bytes .../main/res/layout/analog_input_device.xml | Bin 1744 -> 2030 bytes .../app/src/main/res/layout/analog_inputs.xml | Bin 4252 -> 6462 bytes .../main/res/layout/analog_output_device.xml | Bin 1744 -> 2039 bytes .../src/main/res/layout/analog_outputs.xml | Bin 3292 -> 4534 bytes .../res/layout/custom_dialog_title_bar.xml | Bin 1004 -> 0 bytes .../res/layout/device_interface_module.xml | Bin 2664 -> 3299 bytes .../app/src/main/res/layout/device_name.xml | Bin 1084 -> 0 bytes .../src/main/res/layout/digital_device.xml | Bin 1744 -> 2057 bytes .../src/main/res/layout/digital_devices.xml | Bin 4244 -> 6453 bytes .../app/src/main/res/layout/file_info.xml | Bin 2528 -> 3641 bytes .../app/src/main/res/layout/header.xml | Bin 1100 -> 1106 bytes .../app/src/main/res/layout/i2c_device.xml | Bin 1744 -> 1958 bytes .../app/src/main/res/layout/i2cs.xml | Bin 3916 -> 5709 bytes .../app/src/main/res/layout/info_button.xml | Bin 1192 -> 900 bytes .../app/src/main/res/layout/legacy.xml | Bin 8072 -> 13366 bytes .../app/src/main/res/layout/matrices.xml | Bin 5332 -> 8223 bytes .../src/main/res/layout/matrix_devices.xml | Bin 1568 -> 1663 bytes .../app/src/main/res/layout/motors.xml | Bin 5560 -> 8755 bytes .../src/main/res/layout/orange_warning.xml | Bin 1300 -> 1564 bytes .../app/src/main/res/layout/pwm_device.xml | Bin 1568 -> 1645 bytes .../app/src/main/res/layout/pwms.xml | Bin 3276 -> 4453 bytes .../app/src/main/res/layout/servo.xml | Bin 1568 -> 1657 bytes .../app/src/main/res/layout/servos.xml | Bin 4728 -> 6965 bytes .../app/src/main/res/layout/shape.xml | Bin 876 -> 573 bytes .../app/src/main/res/layout/simple_device.xml | Bin 2308 -> 2852 bytes .../src/main/res/layout/spinner_textview.xml | Bin 436 -> 0 bytes .../src/main/res/menu/ftc_driver_station.xml | Bin 900 -> 0 bytes .../main/res/menu/ftc_robot_controller.xml | Bin 1040 -> 1065 bytes .../app/src/main/res/menu/menu_load.xml | Bin 464 -> 296 bytes .../res/values-sw720dp-land-v13/dimens.xml | 4 + .../app/src/main/res/values-v11/styles.xml | 5 + .../app/src/main/res/values-v14/styles.xml | 5 + .../app/src/main/res/values/arrays.xml | 56 + .../app/src/main/res/values/colors.xml | 14 + .../app/src/main/res/values/dimens.xml | 5 + .../app/src/main/res/values/ids.xml | 208 ++++ .../app/src/main/res/values/public.xml | 390 ++++++ .../app/src/main/res/values/strings.xml | 115 ++ .../app/src/main/res/values/styles.xml | 26 + .../app/src/main/res/xml/device_filter.xml | Bin 288 -> 0 bytes .../app/src/main/res/xml/preferences.xml | Bin 1740 -> 1746 bytes FtcRobotController/build.gradle | 15 +- .../ftcrobotcontroller/.gitignore | 1 + .../ftcrobotcontroller/build.gradle | 39 + .../ftcrobotcontroller/ftcrobotcontroller.iml | 93 ++ .../ftcrobotcontroller/proguard-rules.pro | 17 + .../ftcrobotcontroller/ApplicationTest.java | 13 + .../src/main/AndroidManifest.xml | 97 ++ .../FtcRobotControllerActivity.java | 376 ++++++ .../opmodes/FtcOpModeRegister.java | 12 + .../main/res/drawable-hdpi/button_shape.xml | 28 + .../main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 5058 bytes .../main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 3038 bytes .../main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 7334 bytes .../main/res/drawable-xhdpi/icon_battery0.png | Bin 0 -> 1538 bytes .../res/drawable-xhdpi/icon_battery100.png | Bin 0 -> 1790 bytes .../res/drawable-xhdpi/icon_battery25.png | Bin 0 -> 1643 bytes .../res/drawable-xhdpi/icon_battery50.png | Bin 0 -> 1659 bytes .../res/drawable-xhdpi/icon_battery75.png | Bin 0 -> 1707 bytes .../src/main/res/drawable-xhdpi/icon_menu.png | Bin 0 -> 975 bytes .../drawable-xhdpi/icon_robotcontroller.png | Bin 0 -> 4777 bytes .../main/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 12388 bytes .../res/layout/activity_ftc_controller.xml | 120 ++ .../src/main/res/layout/header.xml | 39 + .../src/main/res/layout/spinner_textview.xml | 16 + .../main/res/menu/ftc_robot_controller.xml | 42 + .../src/main/res/menu/menu_load.xml | 19 + .../src/main/res/values-sw600dp/dimens.xml | 18 + .../main/res/values-sw720dp-land/dimens.xml | 9 + .../src/main/res/values-v11/styles.xml | 21 + .../src/main/res/values-v14/styles.xml | 22 + .../src/main/res/values-w820dp/dimens.xml | 16 + .../src/main/res/values/colors.xml | 21 + .../src/main/res/values/dimens.xml | 17 + .../src/main/res/values/strings.xml | 44 + .../src/main/res/values/styles.xml | 48 + .../src/main/res/xml/device_filter.xml | 6 + .../ftcrobotcontroller/ExampleUnitTest.java | 15 + FtcRobotController/robotcore/.gitignore | 1 + FtcRobotController/robotcore/build.gradle | 29 + .../robotcore/proguard-rules.pro | 17 + FtcRobotController/robotcore/robotcore.iml | 94 ++ .../qualcomm/robotcore/ApplicationTest.java | 13 + .../robotcore/src/main/AndroidManifest.xml | 11 + .../robotcore/eventloop/EventLoop.java | 17 + .../robotcore/eventloop/EventLoopManager.java | 1052 ++++++++-------- .../robotcore/eventloop/SyncdDevice.java | 18 +- .../eventloop/opmode/LinearOpMode.java | 273 +++-- .../robotcore/eventloop/opmode/OpMode.java | 42 + .../eventloop/opmode/OpModeManager.java | 512 ++++---- .../eventloop/opmode/OpModeRegister.java | 5 + .../exception/RobotCoreException.java | 22 + .../RobotCoreNonResponsiveException.java | 7 + .../robotcore/factory/RobotFactory.java | 17 + .../hardware/AccelerationSensor.java | 32 + .../robotcore/hardware/AnalogInput.java | 30 + .../hardware/AnalogInputController.java | 19 +- .../robotcore/hardware/AnalogOutput.java | 38 + .../hardware/AnalogOutputController.java | 13 + .../robotcore/hardware/ColorSensor.java | 20 + .../robotcore/hardware/CompassSensor.java | 25 + .../qualcomm/robotcore/hardware/DcMotor.java | 133 ++ .../robotcore/hardware/DcMotorController.java | 50 + .../hardware/DeviceInterfaceModule.java | 17 + .../robotcore/hardware/DeviceManager.java | 84 ++ .../robotcore/hardware/DigitalChannel.java | 42 + .../hardware/DigitalChannelController.java | 24 + .../qualcomm/robotcore/hardware/Gamepad.java | 791 ++++++------ .../robotcore/hardware/GyroSensor.java | 12 + .../robotcore/hardware/HardwareDevice.java | 11 + .../robotcore/hardware/HardwareFactory.java | 17 +- .../robotcore/hardware/HardwareMap.java | 112 ++ .../robotcore/hardware/I2cController.java | 62 + .../robotcore/hardware/I2cDevice.java | 119 ++ .../robotcore/hardware/I2cDeviceReader.java | 27 + .../robotcore/hardware/IrSeekerSensor.java | 85 ++ .../com/qualcomm/robotcore/hardware/LED.java | 31 + .../robotcore/hardware/LegacyModule.java | 11 + .../robotcore/hardware/LightSensor.java | 16 + .../hardware/OpticalDistanceSensor.java | 8 + .../robotcore/hardware/PWMOutput.java | 42 + .../hardware/PWMOutputController.java | 15 + .../qualcomm/robotcore/hardware/Servo.java | 103 ++ .../robotcore/hardware/ServoController.java | 22 + .../robotcore/hardware/TouchSensor.java | 12 + .../hardware/TouchSensorMultiplexer.java | 7 + .../robotcore/hardware/UltrasonicSensor.java | 12 + .../robotcore/hardware/VoltageSensor.java | 12 +- .../ControllerConfiguration.java | 49 + .../configuration/DeviceConfiguration.java | 126 ++ .../configuration/DeviceInfoAdapter.java | 54 + .../DeviceInterfaceModuleConfiguration.java | 57 + .../LegacyModuleControllerConfiguration.java | 11 + .../MatrixControllerConfiguration.java | 33 + .../configuration/MotorConfiguration.java | 19 + .../MotorControllerConfiguration.java | 25 + .../configuration/ReadXMLFileHandler.java | 470 ++++++++ .../configuration/ServoConfiguration.java | 17 + .../ServoControllerConfiguration.java | 24 + .../hardware/configuration/Utility.java | 319 +++++ .../configuration/WriteXMLFileHandler.java | 264 ++++ .../XMLConfigurationConstants.java | 24 + .../logitech/LogitechGamepadF310.java | 107 ++ .../microsoft/MicrosoftGamepadXbox360.java | 18 + .../hardware/usb/RobotUsbDevice.java | 32 + .../hardware/usb/RobotUsbManager.java | 14 + .../hardware/usb/ftdi/RobotUsbDeviceFtdi.java | 64 + .../usb/ftdi/RobotUsbManagerFtdi.java | 47 + .../qualcomm/robotcore/robocol/Command.java | 151 +++ .../qualcomm/robotcore/robocol/Heartbeat.java | 115 ++ .../robotcore/robocol/PeerDiscovery.java | 96 ++ .../robocol/PeerDiscoveryManager.java | 74 ++ .../robotcore/robocol/RobocolConfig.java | 91 ++ .../robotcore/robocol/RobocolDatagram.java | 79 ++ .../robocol/RobocolDatagramSocket.java | 116 ++ .../robotcore/robocol/RobocolParsable.java | 54 + .../qualcomm/robotcore/robocol/Telemetry.java | 427 ++++--- .../com/qualcomm/robotcore/robot/Robot.java | 40 + .../qualcomm/robotcore/robot/RobotState.java | 42 + .../qualcomm/robotcore/sensor/SensorBase.java | 35 + .../sensor/SensorImageLocalizer.java | 240 ++++ .../robotcore/sensor/SensorListener.java | 10 +- .../robotcore/sensor/SensorTargetPose.java | 9 + .../qualcomm/robotcore/sensor/TargetInfo.java | 18 + .../qualcomm/robotcore/sensor/TargetSize.java | 17 + .../robotcore/sensor/TrackedTargetInfo.java | 13 + .../robotcore/util/BatteryChecker.java | 54 + .../robotcore/util/CurvedWheelMotion.java | 29 + .../DifferentialControlLoopCoefficients.java | 16 + .../com/qualcomm/robotcore/util/Dimmer.java | 65 + .../qualcomm/robotcore/util/ElapsedTime.java | 62 + .../robotcore/util/ExtractAssets.java | 146 +++ .../robotcore/util/GenericDialogFragment.java | 20 + .../com/qualcomm/robotcore/util/Hardware.java | 49 + .../robotcore/util/ImmersiveMode.java | 31 + .../com/qualcomm/robotcore/util/MapView.java | 208 ++++ .../com/qualcomm/robotcore/util/MatrixD.java | 306 +++++ .../com/qualcomm/robotcore/util/Network.java | 113 ++ .../com/qualcomm/robotcore/util/Pose.java | 142 +++ .../qualcomm/robotcore/util/PoseUtils.java | 31 + .../com/qualcomm/robotcore/util/Range.java | 23 + .../com/qualcomm/robotcore/util/RobotLog.java | 150 +++ .../robotcore/util/RollingAverage.java | 46 + .../robotcore/util/RunShellCommand.java | 149 +++ .../qualcomm/robotcore/util/SerialNumber.java | 49 + .../robotcore/util/TypeConversion.java | 83 ++ .../com/qualcomm/robotcore/util/Util.java | 55 + .../com/qualcomm/robotcore/util/Version.java | 9 + .../robotcore/wifi/FixWifiDirectSetup.java | 17 + .../robotcore/wifi/WifiAssistant.java | 79 ++ .../robotcore/wifi/WifiDirectAssistant.java | 500 ++++++++ .../robotcore/src/main/res/values/strings.xml | 3 + .../qualcomm/robotcore/ExampleUnitTest.java | 15 + FtcRobotController/settings.gradle | 2 +- 475 files changed, 11463 insertions(+), 22038 deletions(-) create mode 100644 FtcRobotController/WirelessP2p/.gitignore create mode 100644 FtcRobotController/WirelessP2p/WirelessP2p.iml create mode 100644 FtcRobotController/WirelessP2p/build.gradle create mode 100644 FtcRobotController/WirelessP2p/proguard-rules.pro create mode 100644 FtcRobotController/WirelessP2p/src/androidTest/java/com/qualcomm/wirelessP2p/ApplicationTest.java create mode 100644 FtcRobotController/WirelessP2p/src/main/AndroidManifest.xml create mode 100644 FtcRobotController/WirelessP2p/src/main/java/com/qualcomm/wirelessP2p/WifiDirectChannelSelection.java create mode 100644 FtcRobotController/WirelessP2p/src/main/res/values/strings.xml create mode 100644 FtcRobotController/WirelessP2p/src/test/java/com/qualcomm/wirelessP2p/ExampleUnitTest.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/BulkInRunnable.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/D2xxManager.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_Device.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM_2232D.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM_2232H.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM_232H.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM_232R.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM_245R.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM_4232H.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/FT_EEPROM_X_Series.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ProcessRequestRunnable.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/a.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/b.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/c.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/d.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/e.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/f.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/FT_4222_Defines.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/FT_4222_Device.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/FT_4222_Gpio.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/FT_4222_I2c_Master.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/FT_4222_I2c_Slave.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/FT_4222_Spi_Master.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/FT_4222_Spi_Slave.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/a.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/b.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/c.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/d.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/ft4222/e.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/g.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/h.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/i.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/interfaces/Gpio.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/interfaces/I2cMaster.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/interfaces/I2cSlave.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/interfaces/SpiMaster.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/interfaces/SpiSlave.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/j.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/k.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/l.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/m.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/n.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/o.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/p.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/protocol/FT_Spi_Slave.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/protocol/SpiSlaveEvent.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/protocol/SpiSlaveListener.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/protocol/SpiSlaveRequestEvent.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/protocol/SpiSlaveResponseEvent.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/protocol/SpiSlaveThread.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/q.java delete mode 100644 FtcRobotController/app/src/main/java/com/ftdi/j2xx/r.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/WirelessP2p/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/WirelessP2p/R.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/WirelessP2p/WifiDirectChannelSelection.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/analyticsmodule/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftccommon/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcdriverstation/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcdriverstation/FtcDriverStationActivity.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcdriverstation/FtcPairWifiDirectActivity.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcdriverstation/OpModeSelectionDialogFragment.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcdriverstation/R.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcdriverstation/SettingsActivity.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/FtcRobotControllerActivity.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/R.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/AdafruitRGBExample.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/ColorSensorDriver.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/CompassCalibration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/FtcOpModeRegister.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/IrSeekerOp.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/K9AutoTime.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/K9IrSeeker.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/K9Line.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/K9TankDrive.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/K9TeleOp.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/LinearI2cAddressChange.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/LinearIrExample.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/LinearK9TeleOp.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/NullOp.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/NxtTeleOp.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotAuto.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotAutoSensors.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotDriveTouch.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotHardware.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotHardwareSensors.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotIrEvent.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotIrSeek.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotManual.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotManual1.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotManualSensors.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotOdsDetectEvent.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotOdsFollowEvent.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotSquare.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotTelemetry.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotTelemetrySensors.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/PushBotTouchEvent.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/hardware/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/modernrobotics/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/BuildConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/R.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/eventloop/EventLoop.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/eventloop/opmode/OpMode.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/eventloop/opmode/OpModeRegister.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/exception/RobotCoreException.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/exception/RobotCoreNonResponsiveException.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/factory/RobotFactory.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/AccelerationSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/AnalogInput.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/AnalogOutput.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/AnalogOutputController.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/ColorSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/CompassSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/DcMotor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/DcMotorController.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/DeviceInterfaceModule.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/DeviceManager.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/DigitalChannel.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/DigitalChannelController.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/GyroSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/HardwareDevice.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/HardwareMap.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/I2cController.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/I2cDevice.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/I2cDeviceReader.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/IrSeekerSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/LED.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/LegacyModule.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/LightSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/OpticalDistanceSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/PWMOutput.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/PWMOutputController.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/Servo.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/ServoController.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/TouchSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/TouchSensorMultiplexer.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/UltrasonicSensor.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/ControllerConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/DeviceConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/DeviceInfoAdapter.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/DeviceInterfaceModuleConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/LegacyModuleControllerConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/MatrixControllerConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/MotorConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/MotorControllerConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/ReadXMLFileHandler.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/ServoConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/ServoControllerConfiguration.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/Utility.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/WriteXMLFileHandler.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/configuration/XMLConfigurationConstants.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/logitech/LogitechGamepadF310.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/microsoft/MicrosoftGamepadXbox360.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/usb/RobotUsbDevice.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/usb/RobotUsbManager.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/usb/ftdi/RobotUsbDeviceFtdi.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/hardware/usb/ftdi/RobotUsbManagerFtdi.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/Command.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/Heartbeat.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/PeerDiscovery.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/PeerDiscoveryManager.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/RobocolConfig.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/RobocolDatagram.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/RobocolDatagramSocket.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robocol/RobocolParsable.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robot/Robot.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/robot/RobotState.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/sensor/SensorBase.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/sensor/SensorImageLocalizer.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/sensor/SensorTargetPose.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/sensor/TargetInfo.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/sensor/TargetSize.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/sensor/TrackedTargetInfo.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/BatteryChecker.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/CurvedWheelMotion.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/DifferentialControlLoopCoefficients.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/Dimmer.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/ElapsedTime.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/ExtractAssets.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/GenericDialogFragment.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/Hardware.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/ImmersiveMode.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/MapView.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/MatrixD.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/Network.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/Pose.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/PoseUtils.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/Range.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/RobotLog.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/RollingAverage.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/RunShellCommand.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/SerialNumber.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/TypeConversion.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/Util.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/util/Version.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/wifi/FixWifiDirectSetup.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/wifi/WifiAssistant.java delete mode 100644 FtcRobotController/app/src/main/java/com/qualcomm/robotcore/wifi/WifiDirectAssistant.java delete mode 100644 FtcRobotController/app/src/main/res/anim/fadein.xml delete mode 100644 FtcRobotController/app/src/main/res/anim/fadeout.xml delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/button_shape.xml delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/ic_launcher.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/icon_battery0.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/icon_battery100.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/icon_battery25.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/icon_battery50.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/icon_battery75.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/icon_menu.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/icon_robotcontroller.png create mode 100644 FtcRobotController/app/src/main/res/drawable-hdpi-v4/lib_button_shape.xml delete mode 100644 FtcRobotController/app/src/main/res/drawable-mdpi-v4/ic_launcher.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/ic_launcher.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/icon_battery0.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/icon_battery100.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/icon_battery25.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/icon_battery50.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/icon_battery75.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/icon_menu.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xhdpi-v4/icon_robotcontroller.png delete mode 100644 FtcRobotController/app/src/main/res/drawable-xxhdpi-v4/ic_launcher.png delete mode 100644 FtcRobotController/app/src/main/res/drawable/button_shape.xml create mode 100644 FtcRobotController/app/src/main/res/layout/about.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/activity_about.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/activity_ftc_controller.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/activity_ftc_driver_station.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/activity_ftc_pair_wifi_direct.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/activity_settings.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/custom_dialog_title_bar.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/device_name.xml delete mode 100644 FtcRobotController/app/src/main/res/layout/spinner_textview.xml delete mode 100644 FtcRobotController/app/src/main/res/menu/ftc_driver_station.xml create mode 100644 FtcRobotController/app/src/main/res/values-sw720dp-land-v13/dimens.xml create mode 100644 FtcRobotController/app/src/main/res/values-v11/styles.xml create mode 100644 FtcRobotController/app/src/main/res/values-v14/styles.xml create mode 100644 FtcRobotController/app/src/main/res/values/arrays.xml create mode 100644 FtcRobotController/app/src/main/res/values/colors.xml create mode 100644 FtcRobotController/app/src/main/res/values/dimens.xml create mode 100644 FtcRobotController/app/src/main/res/values/ids.xml create mode 100644 FtcRobotController/app/src/main/res/values/public.xml create mode 100644 FtcRobotController/app/src/main/res/values/strings.xml create mode 100644 FtcRobotController/app/src/main/res/values/styles.xml delete mode 100644 FtcRobotController/app/src/main/res/xml/device_filter.xml create mode 100644 FtcRobotController/ftcrobotcontroller/.gitignore create mode 100644 FtcRobotController/ftcrobotcontroller/build.gradle create mode 100644 FtcRobotController/ftcrobotcontroller/ftcrobotcontroller.iml create mode 100644 FtcRobotController/ftcrobotcontroller/proguard-rules.pro create mode 100644 FtcRobotController/ftcrobotcontroller/src/androidTest/java/com/qualcomm/ftcrobotcontroller/ApplicationTest.java create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/AndroidManifest.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/java/com/qualcomm/ftcrobotcontroller/FtcRobotControllerActivity.java create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/java/com/qualcomm/ftcrobotcontroller/opmodes/FtcOpModeRegister.java create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-hdpi/button_shape.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-mdpi/ic_launcher.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/icon_battery0.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/icon_battery100.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/icon_battery25.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/icon_battery50.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/icon_battery75.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/icon_menu.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xhdpi/icon_robotcontroller.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/layout/activity_ftc_controller.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/layout/header.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/layout/spinner_textview.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/menu/ftc_robot_controller.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/menu/menu_load.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values-sw600dp/dimens.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values-sw720dp-land/dimens.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values-v11/styles.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values-v14/styles.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values-w820dp/dimens.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values/colors.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values/dimens.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values/strings.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/values/styles.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/main/res/xml/device_filter.xml create mode 100644 FtcRobotController/ftcrobotcontroller/src/test/java/com/qualcomm/ftcrobotcontroller/ExampleUnitTest.java create mode 100644 FtcRobotController/robotcore/.gitignore create mode 100644 FtcRobotController/robotcore/build.gradle create mode 100644 FtcRobotController/robotcore/proguard-rules.pro create mode 100644 FtcRobotController/robotcore/robotcore.iml create mode 100644 FtcRobotController/robotcore/src/androidTest/java/com/qualcomm/robotcore/ApplicationTest.java create mode 100644 FtcRobotController/robotcore/src/main/AndroidManifest.xml create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/eventloop/EventLoop.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/eventloop/EventLoopManager.java (79%) rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/eventloop/SyncdDevice.java (54%) rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/eventloop/opmode/LinearOpMode.java (85%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/eventloop/opmode/OpMode.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/eventloop/opmode/OpModeManager.java (74%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/eventloop/opmode/OpModeRegister.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/exception/RobotCoreException.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/exception/RobotCoreNonResponsiveException.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/factory/RobotFactory.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/AccelerationSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/AnalogInput.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/hardware/AnalogInputController.java (53%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/AnalogOutput.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/AnalogOutputController.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/ColorSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/CompassSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/DcMotor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/DcMotorController.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/DeviceInterfaceModule.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/DeviceManager.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/DigitalChannel.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/DigitalChannelController.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/hardware/Gamepad.java (71%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/GyroSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/HardwareDevice.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/hardware/HardwareFactory.java (54%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/HardwareMap.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/I2cController.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/I2cDevice.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/I2cDeviceReader.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/IrSeekerSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/LED.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/LegacyModule.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/LightSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/OpticalDistanceSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/PWMOutput.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/PWMOutputController.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/Servo.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/ServoController.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/TouchSensor.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/TouchSensorMultiplexer.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/UltrasonicSensor.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/hardware/VoltageSensor.java (53%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/ControllerConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/DeviceConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/DeviceInfoAdapter.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/DeviceInterfaceModuleConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/LegacyModuleControllerConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/MatrixControllerConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/MotorConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/MotorControllerConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/ReadXMLFileHandler.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/ServoConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/ServoControllerConfiguration.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/Utility.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/WriteXMLFileHandler.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/configuration/XMLConfigurationConstants.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/logitech/LogitechGamepadF310.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/microsoft/MicrosoftGamepadXbox360.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/usb/RobotUsbDevice.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/usb/RobotUsbManager.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/usb/ftdi/RobotUsbDeviceFtdi.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/hardware/usb/ftdi/RobotUsbManagerFtdi.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/Command.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/Heartbeat.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/PeerDiscovery.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/PeerDiscoveryManager.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/RobocolConfig.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/RobocolDatagram.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/RobocolDatagramSocket.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robocol/RobocolParsable.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/robocol/Telemetry.java (66%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robot/Robot.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/robot/RobotState.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/sensor/SensorBase.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/sensor/SensorImageLocalizer.java rename FtcRobotController/{app => robotcore}/src/main/java/com/qualcomm/robotcore/sensor/SensorListener.java (71%) create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/sensor/SensorTargetPose.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/sensor/TargetInfo.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/sensor/TargetSize.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/sensor/TrackedTargetInfo.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/BatteryChecker.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/CurvedWheelMotion.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/DifferentialControlLoopCoefficients.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/Dimmer.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/ElapsedTime.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/ExtractAssets.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/GenericDialogFragment.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/Hardware.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/ImmersiveMode.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/MapView.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/MatrixD.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/Network.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/Pose.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/PoseUtils.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/Range.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/RobotLog.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/RollingAverage.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/RunShellCommand.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/SerialNumber.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/TypeConversion.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/Util.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/util/Version.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/wifi/FixWifiDirectSetup.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/wifi/WifiAssistant.java create mode 100644 FtcRobotController/robotcore/src/main/java/com/qualcomm/robotcore/wifi/WifiDirectAssistant.java create mode 100644 FtcRobotController/robotcore/src/main/res/values/strings.xml create mode 100644 FtcRobotController/robotcore/src/test/java/com/qualcomm/robotcore/ExampleUnitTest.java diff --git a/FtcRobotController/.idea/gradle.xml b/FtcRobotController/.idea/gradle.xml index c49011e..7be294a 100644 --- a/FtcRobotController/.idea/gradle.xml +++ b/FtcRobotController/.idea/gradle.xml @@ -5,12 +5,15 @@ diff --git a/FtcRobotController/.idea/modules.xml b/FtcRobotController/.idea/modules.xml index 31c8126..cd848f0 100644 --- a/FtcRobotController/.idea/modules.xml +++ b/FtcRobotController/.idea/modules.xml @@ -3,7 +3,10 @@ + + + \ No newline at end of file diff --git a/FtcRobotController/WirelessP2p/.gitignore b/FtcRobotController/WirelessP2p/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/FtcRobotController/WirelessP2p/.gitignore @@ -0,0 +1 @@ +/build diff --git a/FtcRobotController/WirelessP2p/WirelessP2p.iml b/FtcRobotController/WirelessP2p/WirelessP2p.iml new file mode 100644 index 0000000..5349760 --- /dev/null +++ b/FtcRobotController/WirelessP2p/WirelessP2p.iml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/FtcRobotController/WirelessP2p/build.gradle b/FtcRobotController/WirelessP2p/build.gradle new file mode 100644 index 0000000..9e08cb1 --- /dev/null +++ b/FtcRobotController/WirelessP2p/build.gradle @@ -0,0 +1,26 @@ +apply plugin: 'com.android.library' + +android { + compileSdkVersion 22 + buildToolsVersion '22.0.1' + defaultConfig { + minSdkVersion 19 + targetSdkVersion 22 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } + productFlavors { + } +} + +dependencies { + compile fileTree(include: ['*.jar'], dir: 'libs') + testCompile 'junit:junit:4.12' + compile project(':robotcore') +} diff --git a/FtcRobotController/WirelessP2p/proguard-rules.pro b/FtcRobotController/WirelessP2p/proguard-rules.pro new file mode 100644 index 0000000..db73af4 --- /dev/null +++ b/FtcRobotController/WirelessP2p/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in C:\Users\Public\Android\sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/FtcRobotController/WirelessP2p/src/androidTest/java/com/qualcomm/wirelessP2p/ApplicationTest.java b/FtcRobotController/WirelessP2p/src/androidTest/java/com/qualcomm/wirelessP2p/ApplicationTest.java new file mode 100644 index 0000000..5c5dfe5 --- /dev/null +++ b/FtcRobotController/WirelessP2p/src/androidTest/java/com/qualcomm/wirelessP2p/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.qualcomm.wirelessP2p; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/FtcRobotController/WirelessP2p/src/main/AndroidManifest.xml b/FtcRobotController/WirelessP2p/src/main/AndroidManifest.xml new file mode 100644 index 0000000..ef60a23 --- /dev/null +++ b/FtcRobotController/WirelessP2p/src/main/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/FtcRobotController/WirelessP2p/src/main/java/com/qualcomm/wirelessP2p/WifiDirectChannelSelection.java b/FtcRobotController/WirelessP2p/src/main/java/com/qualcomm/wirelessP2p/WifiDirectChannelSelection.java new file mode 100644 index 0000000..f718fa6 --- /dev/null +++ b/FtcRobotController/WirelessP2p/src/main/java/com/qualcomm/wirelessP2p/WifiDirectChannelSelection.java @@ -0,0 +1,104 @@ +package com.qualcomm.wirelessP2p; + +import android.content.Context; +import android.net.wifi.WifiManager; + +import com.qualcomm.robotcore.util.RobotLog; +import com.qualcomm.robotcore.util.RunShellCommand; + +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.IOException; + +public class WifiDirectChannelSelection { + public static final int INVALID = -1; + private final String a; + private final String b; + private final String c; + private final WifiManager d; + private final RunShellCommand e = new RunShellCommand(); + + public WifiDirectChannelSelection(Context var1, WifiManager var2) { + this.a = var1.getFilesDir().getAbsolutePath() + "/"; + this.d = var2; + this.b = this.a + "get_current_wifi_direct_staus"; + this.c = this.a + "config_wifi_direct"; + } + + private int a() throws RuntimeException { + String[] var1 = this.e.run("/system/bin/ps").split("\n"); + int var2 = var1.length; + + for (int var3 = 0; var3 < var2; ++var3) { + String var4 = var1[var3]; + if (var4.contains("wpa_supplicant")) { + return Integer.parseInt(var4.split("\\s+")[1]); + } + } + + throw new RuntimeException("could not find wpa_supplicant PID"); + } + + private void a(int param1, int param2) { + // $FF: Couldn't be decompiled + } + + private void b() { + try { + char[] var3 = new char[4096]; + FileReader var4 = new FileReader(this.a + "wpa_supplicant.conf"); + int var5 = var4.read(var3); + var4.close(); + String var6 = new String(var3, 0, var5); + RobotLog.v("WPA FILE: \n" + var6); + String var7 = var6.replaceAll("(?s)network\\s*=\\{.*\\}", "").replaceAll("(?m)^\\s+$", ""); + RobotLog.v("WPA REPLACE: \n" + var7); + FileWriter var8 = new FileWriter(this.a + "wpa_supplicant.conf"); + var8.write(var7); + var8.close(); + } catch (FileNotFoundException var9) { + RobotLog.e("File not found: " + var9.toString()); + var9.printStackTrace(); + } catch (IOException var10) { + RobotLog.e("FIO exception: " + var10.toString()); + var10.printStackTrace(); + } + } + + private void c() throws IOException { + Object[] var1 = new Object[]{this.a, this.a, this.a}; + String var2 = String.format("cp /data/misc/wifi/wpa_supplicant.conf %s/wpa_supplicant.conf \ncp /data/misc/wifi/p2p_supplicant.conf %s/p2p_supplicant.conf \nchmod 666 %s/*supplicant* \n", var1); + Object[] var3 = new Object[]{this.a, this.a, this.a, Integer.valueOf(this.a())}; + String var4 = String.format("cp %s/p2p_supplicant.conf /data/misc/wifi/p2p_supplicant.conf \ncp %s/wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf \nrm %s/*supplicant* \nchown system.wifi /data/misc/wifi/wpa_supplicant.conf \nchown system.wifi /data/misc/wifi/p2p_supplicant.conf \nkill -HUP %d \n", var3); + FileWriter var5 = new FileWriter(this.b); + var5.write(var2); + var5.close(); + FileWriter var6 = new FileWriter(this.c); + var6.write(var4); + var6.close(); + this.e.run("chmod 700 " + this.b); + this.e.run("chmod 700 " + this.c); + } + + private void d() { + (new File(this.b)).delete(); + (new File(this.c)).delete(); + } + + public void config(int var1, int var2) throws IOException { + try { + this.d.setWifiEnabled(false); + this.c(); + this.e.runAsRoot(this.b); + this.a(var1, var2); + this.b(); + this.e.runAsRoot(this.c); + this.d.setWifiEnabled(true); + } finally { + this.d(); + } + + } +} diff --git a/FtcRobotController/WirelessP2p/src/main/res/values/strings.xml b/FtcRobotController/WirelessP2p/src/main/res/values/strings.xml new file mode 100644 index 0000000..607a63e --- /dev/null +++ b/FtcRobotController/WirelessP2p/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Wireless P2P + diff --git a/FtcRobotController/WirelessP2p/src/test/java/com/qualcomm/wirelessP2p/ExampleUnitTest.java b/FtcRobotController/WirelessP2p/src/test/java/com/qualcomm/wirelessP2p/ExampleUnitTest.java new file mode 100644 index 0000000..38c6ff6 --- /dev/null +++ b/FtcRobotController/WirelessP2p/src/test/java/com/qualcomm/wirelessP2p/ExampleUnitTest.java @@ -0,0 +1,15 @@ +package com.qualcomm.wirelessP2p; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * To work on unit tests, switch the Test Artifact in the Build Variants view. + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/FtcRobotController/app/app.iml b/FtcRobotController/app/app.iml index 7a6e8df..2882dbc 100644 --- a/FtcRobotController/app/app.iml +++ b/FtcRobotController/app/app.iml @@ -23,6 +23,7 @@