Skip to content

Commit

Permalink
v4.0 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ftctechnh committed Sep 13, 2018
1 parent 4396aa8 commit 612f456
Show file tree
Hide file tree
Showing 209 changed files with 25,405 additions and 1,680 deletions.
1 change: 0 additions & 1 deletion FtcRobotController/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ android {
}

compileSdkVersion 23
buildToolsVersion '25.0.3'

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
Expand Down
1 change: 0 additions & 1 deletion FtcRobotController/build.release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ dependencies {
compile (name:'RobotCore-release', ext: 'aar')
compile (name:'Hardware-release', ext: 'aar')
compile (name:'FtcCommon-release', ext: 'aar')
compile (name:'Analytics-release', ext:'aar')
compile (name:'WirelessP2p-release', ext:'aar')
}
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="27"
android:versionName="3.7">
android:versionCode="28"
android:versionName="4.0">

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

Expand Down
Binary file not shown.
9 changes: 9 additions & 0 deletions FtcRobotController/src/main/assets/RoverRuckus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd">
<Tracking>
<ImageTarget name="BluePerimeter" size="254.000000 183.280029" />
<ImageTarget name="RedPerimeter" size="254.000000 181.783096" />
<ImageTarget name="FrontPerimeter" size="254.000000 158.794403" />
<ImageTarget name="BackPerimeter" size="254.000000 199.508209" />
</Tracking>
</QCARConfig>
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

package org.firstinspires.ftc.robotcontroller.external.samples;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.CompassSensor;
import com.qualcomm.robotcore.util.ElapsedTime;

Expand All @@ -52,7 +52,7 @@
* Remove or comment out the @Disabled line to add this opmode to the Driver Station OpMode list
*/

@Autonomous(name="Concept: Compass Calibration", group="Concept")
@TeleOp(name="Concept: Compass Calibration", group="Concept")
@Disabled
public class ConceptCompassCalibration extends LinearOpMode {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

package org.firstinspires.ftc.robotcontroller.external.samples;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DeviceInterfaceModule;
import com.qualcomm.robotcore.util.ElapsedTime;

Expand All @@ -51,7 +51,7 @@
* Use Android Studios to Copy this Class, and Paste it into your team's code folder with a new name.
* Remove or comment out the @Disabled line to add this opmode to the Driver Station OpMode list
*/
@Autonomous(name = "Concept: DIM As Indicator", group = "Concept")
@TeleOp(name = "Concept: DIM As Indicator", group = "Concept")
@Disabled
public class ConceptDIMAsIndicator extends LinearOpMode {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

package org.firstinspires.ftc.robotcontroller.external.samples;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.util.ElapsedTime;

import java.text.SimpleDateFormat;
Expand All @@ -40,7 +40,7 @@
/**
* Demonstrates empty OpMode
*/
@Autonomous(name = "Concept: NullOp", group = "Concept")
@TeleOp(name = "Concept: NullOp", group = "Concept")
@Disabled
public class ConceptNullOp extends OpMode {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

package org.firstinspires.ftc.robotcontroller.external.samples;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;

/**
Expand All @@ -46,7 +46,7 @@
* Use Android Studio to Copy this Class, and Paste it into your team's code folder with a new name.
* Remove or comment out the @Disabled line to add this opmode to the Driver Station OpMode list
*/
@Autonomous(name = "Concept: Ramp Motor Speed", group = "Concept")
@TeleOp(name = "Concept: Ramp Motor Speed", group = "Concept")
@Disabled
public class ConceptRampMotorSpeed extends LinearOpMode {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,8 @@ public static void registerMyOpModes(OpModeManager manager) {
// manager.register("Scan Servo", ConceptScanServo.class);
// manager.register("Telemetry", ConceptTelemetry.class);
// manager.register("Vuforia Navigation", ConceptVuforiaNavigation.class);
// manager.register("Vuforia Navigation Webcam", ConceptVuforiaNavigationWebcam.class);
// manager.register("Vuforia VuMarkID", ConceptVuforiaVuMarkIdentification.class);
// manager.register("Vuforia VuMarkID Webcam", ConceptVuforiaVuMarkIdentificationWebcam.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

package org.firstinspires.ftc.robotcontroller.external.samples;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.Servo;

/**
Expand All @@ -48,7 +48,7 @@
* Use Android Studio to Copy this Class, and Paste it into your team's code folder with a new name.
* Remove or comment out the @Disabled line to add this opmode to the Driver Station OpMode list
*/
@Autonomous(name = "Concept: Scan Servo", group = "Concept")
@TeleOp(name = "Concept: Scan Servo", group = "Concept")
@Disabled
public class ConceptScanServo extends LinearOpMode {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

package org.firstinspires.ftc.robotcontroller.external.samples;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.VoltageSensor;
import com.qualcomm.robotcore.util.ElapsedTime;

Expand All @@ -47,7 +47,7 @@
*
* @see Telemetry
*/
@Autonomous(name = "Concept: Telemetry", group = "Concept")
@TeleOp(name = "Concept: Telemetry", group = "Concept")
@Disabled
public class ConceptTelemetry extends LinearOpMode {
/** keeps track of the line of the poem which is to be emitted next */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
package org.firstinspires.ftc.robotcontroller.external.samples;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;

Expand Down Expand Up @@ -65,7 +65,7 @@
* is explained in {@link ConceptVuforiaNavigation}.
*/

@Autonomous(name="Concept: VuMark Id", group ="Concept")
@TeleOp(name="Concept: VuMark Id", group ="Concept")
@Disabled
public class ConceptVuMarkIdentification extends LinearOpMode {

Expand All @@ -83,7 +83,6 @@ public class ConceptVuMarkIdentification extends LinearOpMode {

/*
* To start up Vuforia, tell it the view that we wish to use for camera monitor (on the RC phone);
* If no camera monitor is desired, use the parameterless constructor instead (commented out below).
*/
int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier("cameraMonitorViewId", "id", hardwareMap.appContext.getPackageName());
VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);
Expand All @@ -101,17 +100,22 @@ public class ConceptVuMarkIdentification extends LinearOpMode {
* random data. As an example, here is a example of a fragment of a valid key:
* ... yIgIzTqZ4mWjk9wd3cZO9T1axEqzuhxoGlfOOI2dRzKS4T0hQ8kT ...
* Once you've obtained a license key, copy the string from the Vuforia web site
* and paste it in to your code onthe next line, between the double quotes.
* and paste it in to your code on the next line, between the double quotes.
*/
parameters.vuforiaLicenseKey = "ATsODcD/////AAAAAVw2lR...d45oGpdljdOh5LuFB9nDNfckoxb8COxKSFX";
parameters.vuforiaLicenseKey = " -- YOUR NEW VUFORIA KEY GOES HERE --- ";

/*
* We also indicate which camera on the RC that we wish to use.
* Here we chose the back (HiRes) camera (for greater range), but
* for a competition robot, the front camera might be more convenient.
*/
parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;
this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);

/**
* Instantiate the Vuforia engine
*/
vuforia = ClassFactory.getInstance().createVuforia(parameters);


/**
* Load the data set containing the VuMarks for Relic Recovery. There's only one trackable
Expand Down
Loading

0 comments on commit 612f456

Please sign in to comment.