Skip to content

Commit

Permalink
Release 15.10.06.002 - support for legacy Matrix motor servo controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
ftctechnh committed Oct 6, 2015
1 parent d6e9863 commit be26e83
Show file tree
Hide file tree
Showing 183 changed files with 31,512 additions and 1,038 deletions.
10 changes: 6 additions & 4 deletions FtcRobotController/FtcRobotController.iml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugAndroidTestSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateDebugAndroidTestSources" />
<afterSyncTasks>
<task>generateDebugAndroidTestSources</task>
<task>generateDebugSources</task>
</afterSyncTasks>
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
Expand All @@ -24,7 +26,7 @@
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" />
<exclude-output />
Expand Down Expand Up @@ -90,7 +92,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android 4.4.2 Google APIs" jdkType="Android SDK" />
<orderEntry type="jdk" jdkName="Google APIs (4.4.2)" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="android-support-v4" level="project" />
<orderEntry type="library" exported="" name="ModernRobotics-release-" level="project" />
Expand Down
30 changes: 0 additions & 30 deletions FtcRobotController/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,6 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) 2014, 2015 Qualcomm Technologies Inc

All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted (subject to the limitations in the disclaimer below) provided that
the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

Neither the name of Qualcomm Technologies Inc nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS
LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


================================================================================
ModernRobotics, Analitics, and WirelessP2p have the following license:

Expand Down
17 changes: 8 additions & 9 deletions FtcRobotController/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion = 'Google Inc.:Google APIs:19'
buildToolsVersion = '21.1.2'

defaultConfig {
minSdkVersion 16
targetSdkVersion 19
}
compileSdkVersion 'Google Inc.:Google APIs:19'
buildToolsVersion '21.1.2'
}

buildscript {
Expand Down Expand Up @@ -39,10 +38,10 @@ allprojects {

dependencies {
compile files('libs/android-support-v4.jar')
compile (name:'RobotCore-release', ext:'aar')
compile (name:'Hardware-release', ext:'aar')
compile (name:'FtcCommon-release', ext:'aar')
compile (name:'ModernRobotics-release', ext:'aar')
compile (name:'Analytics-release', ext:'aar')
compile (name:'WirelessP2p-release', ext:'aar')
compile(name: 'RobotCore-release', ext: 'aar')
compile(name: 'Hardware-release', ext: 'aar')
compile(name: 'FtcCommon-release', ext: 'aar')
compile(name: 'ModernRobotics-release', ext: 'aar')
compile(name: 'Analytics-release', ext: 'aar')
compile(name: 'WirelessP2p-release', ext: 'aar')
}
Binary file modified FtcRobotController/libs/Analytics-release.aar
Binary file not shown.
Binary file modified FtcRobotController/libs/FtcCommon-release.aar
Binary file not shown.
Binary file modified FtcRobotController/libs/Hardware-release.aar
Binary file not shown.
Binary file modified FtcRobotController/libs/ModernRobotics-release.aar
Binary file not shown.
Binary file modified FtcRobotController/libs/RobotCore-release.aar
Binary file not shown.
Binary file modified FtcRobotController/libs/WirelessP2p-release.aar
Binary file not shown.
4 changes: 2 additions & 2 deletions FtcRobotController/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.qualcomm.ftcrobotcontroller"
android:versionCode="3"
android:versionName="User Developed App">
android:versionCode="4"
android:versionName="1.2">


<uses-permission
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
import com.qualcomm.ftccommon.Restarter;
import com.qualcomm.ftccommon.UpdateUI;
import com.qualcomm.ftcrobotcontroller.opmodes.FtcOpModeRegister;
import com.qualcomm.hardware.ModernRoboticsHardwareFactory;
import com.qualcomm.robotcore.hardware.HardwareFactory;
import com.qualcomm.hardware.HardwareFactory;
import com.qualcomm.robotcore.hardware.configuration.Utility;
import com.qualcomm.robotcore.util.Dimmer;
import com.qualcomm.robotcore.util.ImmersiveMode;
Expand Down Expand Up @@ -174,7 +173,7 @@ public void onClick(View v) {

hittingMenuButtonBrightensScreen();

if (USE_DEVICE_EMULATION) { ModernRoboticsHardwareFactory.enableDeviceEmulation(); }
if (USE_DEVICE_EMULATION) { HardwareFactory.enableDeviceEmulation(); }
}

@Override
Expand Down Expand Up @@ -298,7 +297,6 @@ protected void onActivityResult(int request, int result, Intent intent) {
utility.updateHeader(Utility.NO_FILE, R.string.pref_hardware_config_filename, R.id.active_filename, R.id.included_header);
}
}

}
}

Expand All @@ -322,7 +320,7 @@ private void requestRobotSetup() {
HardwareFactory factory;

// Modern Robotics Factory for use with Modern Robotics hardware
ModernRoboticsHardwareFactory modernRoboticsFactory = new ModernRoboticsHardwareFactory(context);
HardwareFactory modernRoboticsFactory = new HardwareFactory(context);
modernRoboticsFactory.setXmlInputStream(fis);
factory = modernRoboticsFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
*
* The op mode assumes that the Core Device Interface Module
* is configured with a name of "dim" and that the Adafruit color sensor
* is configured as an I2C device with a name of "lady".
* is configured as an I2C device with a name of "color".
*
* It also assumes that the LED pin of the RGB sensor
* is connected to the signal pin of digital port #5 (zero indexed)
Expand Down Expand Up @@ -92,7 +92,7 @@ public void runOpMode() throws InterruptedException {
cdim.setDigitalChannelMode(LED_CHANNEL, DigitalChannelController.Mode.OUTPUT);

// get a reference to our ColorSensor object.
sensorRGB = hardwareMap.colorSensor.get("lady");
sensorRGB = hardwareMap.colorSensor.get("color");

// bEnabled represents the state of the LED.
boolean bEnabled = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void register(OpModeManager manager) {

manager.register("NullOp", NullOp.class);

manager.register("MatrixK9TeleOp", MatrixK9TeleOp.class);
manager.register("K9TeleOp", K9TeleOp.class);
manager.register ("PushBotAuto", PushBotAuto.class);
manager.register ("PushBotManual", PushBotManual.class);
Expand All @@ -66,9 +67,7 @@ public void register(OpModeManager manager) {
*/

//manager.register("AdafruitRGBExample", AdafruitRGBExample.class);
//manager.register("MRRGBExample", MRRGBExample.class);
//manager.register("ColorSensorDriver", ColorSensorDriver.class);
//manager.register("HTRGBExample", HTRGBExample.class);

//manager.register("IrSeekerOp", IrSeekerOp.class);
//manager.register("CompassCalibration", CompassCalibration.class);
Expand All @@ -90,9 +89,9 @@ public void register(OpModeManager manager) {
//manager.register ("PushBotOdsFollowEvent", PushBotOdsFollowEvent.class);
//manager.register ("PushBotTouchEvent", PushBotTouchEvent.class);

//manager.register("PushBotDriveTouch", PushBotDriveTouch.class);
//manager.register("PushBotIrSeek", PushBotIrSeek.class);
//manager.register("PushBotSquare", PushBotSquare.class);
//manager.register("PushBotDriveTouch", PushBotDriveTouch.java);
//manager.register("PushBotIrSeek", PushBotIrSeek.java);
//manager.register("PushBotSquare", PushBotSquare.java);



Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public void loop() {
/*
* read the light sensor.
*/
reflection = reflectedLight.getLightDetected();

//reflection = reflectedLight.getLightLevel();
/*
* compare measured value to threshold.
*/
Expand Down
Loading

0 comments on commit be26e83

Please sign in to comment.