Skip to content

Commit a3b45d7

Browse files
committed
VSCODE is BETTER
0 parents  commit a3b45d7

File tree

109 files changed

+11170
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+11170
-0
lines changed

.github/CONTRIBUTING.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Contributing to the FTC SDK
2+
3+
The following is a set of guidelines for contributing the FIRST FTC SDK. The FTC Technology Team welcomes suggestions for improvements to core software, ideas for new features, requests for built-in support of new sensors, and well written bug reports.
4+
5+
## How can I contribute?
6+
7+
### Pull requests
8+
9+
__STOP!__ If you are new to git, do not understand the mechanics of forks, branches, and pulls, if what you just read is confusing, __do not__ push this button. Most likely it won't do what you think it will.
10+
11+
![Pull Button](../doc/media/PullRequest.PNG)
12+
13+
If you are looking at this button then you've pushed some changes to your team's fork of ftctechnh/ftc_app. Congratulations! You are almost certainly finished.
14+
15+
The vast majority of pull requests seen on the ftctechnh/ftc_app repository are not intended to be merged into the official SDK. Team software is just that, your team's. It's specific to the tasks you are trying to accomplish, the testing you are doing, and goals your team has. You don't want that pushed into the official SDK.
16+
17+
If what you've read so far makes little sense, there are some very good git learning resources online.
18+
[Git Book](https://git-scm.com/book/en/v2)
19+
[Interactive Git Tutorial](https://try.github.io)
20+
21+
##### Guidlines for experienced GIT users.
22+
23+
If you are absolutely certain that you want to push the big green button above, read on. Otherwise back _slowly away from keyboard_.
24+
25+
The real intent for advanced users is often to issue a pull request from the [branch](https://www.atlassian.com/git/tutorials/using-branches/git-branch) on a local fork back to master on either the same local fork or a child of the team fork and not on the parent ftctechnh/ftc_app. See [Creating a Pull Request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/).
26+
27+
If that is indeed the intent, then you can merge your [topic branch](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows#Topic-Branches) into master locally by hand before pushing it up to github, or if you want a pull request for pulls between branches on the same repository because, say, you want team members to look at your software before merging into master, you can select the base fork from the dropdown on the "Open a pull request" page and select your team repo instead of ftctechnh's.
28+
29+
Alternatively, if you have a team repository forked from ftctechnh/ftc_app, and then team members individually fork from your team repository, then pull requests from the individual team member's forks will have the main team repository automatically selected as the base fork for the pull. And you won't inadvertently request to pull your team software into ftctechnh's repository.
30+
31+
The latter would be the "best" way to manage software among a large team. But as with all things git there are many options.
32+
33+
Pull requests that do not fall into the category above are evaluated by the FTC Technology Team on a case-by-case basis. Please note however that the deployment model of the SDK does not support direct pulls into ftctechnh/ftc_app.
34+
35+
### Report bugs
36+
37+
This section guides you through filing a bug report. The better the report the more likely it is to be root caused and fixed. Please refrain from feature requests or software enhancements when opening new issues. See Suggesting Enhancements below.
38+
39+
#### Before submitting a bug report
40+
41+
- Check the [forums](http://ftcforum.usfirst.org/forum.php) to see if someone else has run into the problem and whether there is an official solution that doesn't require a new SDK.
42+
43+
- Perform a search of current [issues](https://github.com/ftctechnh/ftc_app/issues) to see if the problem has already been reported. If so, add a comment to the existing issue instead of creating a new one.
44+
45+
#### How Do I Submit A (Good) Bug Report?
46+
47+
Bugs are tracked as GitHub issues. Create an issue on ftctechnh/ftc_app and provide the following information.
48+
Explain the problem and include additional details to help maintainers reproduce the problem:
49+
50+
- Use a clear and descriptive title for the issue to identify the problem.
51+
52+
- Describe the exact steps which reproduce the problem in as many details as possible.
53+
54+
- Provide specific examples to demonstrate the steps.
55+
56+
- Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior. Explain which behavior you expected to see instead and why. If applicable, include screenshots which show you following the described steps and clearly demonstrate the problem.
57+
58+
- If you're reporting that the RobotController crashed, include the logfile with a stack trace of the crash. [Example of good bug report with stack trace](https://github.com/ftctechnh/ftc_app/issues/224)
59+
60+
- If the problem wasn't triggered by a specific action, describe what you were doing before the problem happened and share more information using the guidelines below.
61+
62+
### Suggesting Enhancements
63+
64+
FIRST volunteers are awesome. You all have great ideas and we want to hear them.
65+
66+
Enhancements should be broadly applicable to a large majority of teams, should not force teams to change their workflow, and should provide real value to the mission of FIRST as it relates to engaging youth in engineering activities.
67+
68+
The best way to get momentum behind new features is to post a description of your idea in the forums. Build community support for it. The FTC Technology Team monitors the forums. We'll hear you and if there's a large enough call for the feature it's very likely to get put on the list for a future release.

.github/PULL_REQUEST_TEMPLATE.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Before issuing a pull request, please see the contributing page.

.gitignore

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Built application files
2+
*.apk
3+
*.aar
4+
*.ap_
5+
*.aab
6+
7+
!libs/*.aar
8+
9+
# Files for the ART/Dalvik VM
10+
*.dex
11+
12+
# Java class files
13+
*.class
14+
15+
# Generated files
16+
bin/
17+
gen/
18+
out/
19+
# Uncomment the following line in case you need and you don't have the release build type files in your app
20+
# release/
21+
22+
# Gradle files
23+
.gradle/
24+
build/
25+
26+
# Local configuration file (sdk path, etc)
27+
local.properties
28+
29+
# Proguard folder generated by Eclipse
30+
proguard/
31+
32+
# Log Files
33+
*.log
34+
35+
# Android Studio Navigation editor temp files
36+
.navigation/
37+
38+
# Android Studio captures folder
39+
captures/
40+
41+
# IntelliJ
42+
*.iml
43+
.idea/workspace.xml
44+
.idea/tasks.xml
45+
.idea/gradle.xml
46+
.idea/assetWizardSettings.xml
47+
.idea/dictionaries
48+
.idea/libraries
49+
# Android Studio 3 in .gitignore file.
50+
.idea/caches
51+
.idea/modules.xml
52+
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
53+
.idea/navEditor.xml
54+
55+
# Keystore files
56+
# Uncomment the following lines if you do not want to check your keystore files in.
57+
#*.jks
58+
#*.keystore
59+
60+
# External native build folder generated in Android Studio 2.2 and later
61+
.externalNativeBuild
62+
.cxx/
63+
64+
# Google Services (e.g. APIs or Firebase)
65+
# google-services.json
66+
67+
# Freeline
68+
freeline.py
69+
freeline/
70+
freeline_project_description.json
71+
72+
# fastlane
73+
fastlane/report.xml
74+
fastlane/Preview.html
75+
fastlane/screenshots
76+
fastlane/test_output
77+
fastlane/readme.md
78+
79+
# Version control
80+
vcs.xml
81+
82+
# lint
83+
lint/intermediates/
84+
lint/generated/
85+
lint/outputs/
86+
lint/tmp/
87+
# lint/reports/

FtcRobotController/build.gradle

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import java.text.SimpleDateFormat
2+
3+
//
4+
// build.gradle in FtcRobotController
5+
//
6+
apply plugin: 'com.android.library'
7+
8+
android {
9+
10+
defaultConfig {
11+
minSdkVersion 23
12+
//noinspection ExpiredTargetSdkVersion
13+
targetSdkVersion 28
14+
buildConfigField "String", "APP_BUILD_TIME", '"' + (new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.ROOT).format(new Date())) + '"'
15+
}
16+
17+
compileSdkVersion 29
18+
19+
compileOptions {
20+
sourceCompatibility JavaVersion.VERSION_1_7
21+
targetCompatibility JavaVersion.VERSION_1_7
22+
}
23+
namespace = 'com.qualcomm.ftcrobotcontroller'
24+
}
25+
26+
apply from: '../build.dependencies.gradle'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
android:versionCode="47"
5+
android:versionName="8.0">
6+
7+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
8+
9+
<application
10+
android:allowBackup="true"
11+
android:largeHeap="true"
12+
android:icon="@drawable/ic_launcher"
13+
android:label="@string/app_name"
14+
android:theme="@style/AppThemeRedRC"
15+
android:usesCleartextTraffic="true">
16+
17+
<!-- Indicates to the ControlHubUpdater what the latest version of the Control Hub is that this app supports -->
18+
<meta-data
19+
android:name="org.firstinspires.latestSupportedControlHubVersion"
20+
android:value="1" />
21+
22+
<!-- The main robot controller activity -->
23+
<activity android:name="org.firstinspires.ftc.robotcontroller.internal.PermissionValidatorWrapper"
24+
android:screenOrientation="fullUser"
25+
android:configChanges="orientation|screenSize"
26+
android:label="@string/app_name"
27+
android:launchMode="singleTask" >
28+
29+
<intent-filter>
30+
<category android:name="android.intent.category.LAUNCHER" />
31+
<action android:name="android.intent.action.MAIN" />
32+
</intent-filter>
33+
34+
</activity>
35+
36+
<activity
37+
android:name="org.firstinspires.ftc.robotcontroller.internal.FtcRobotControllerActivity"
38+
android:screenOrientation="fullUser"
39+
android:configChanges="orientation|screenSize"
40+
android:label="@string/app_name"
41+
android:launchMode="singleTask" >
42+
43+
<intent-filter>
44+
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
45+
</intent-filter>
46+
47+
<meta-data
48+
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
49+
android:resource="@xml/device_filter" />
50+
51+
<!--org.firstinspires.main.entry indicates that this app is compatible with the Dragonboard Control Hub-->
52+
<meta-data
53+
android:name="org.firstinspires.main.entry"
54+
android:value="true" />
55+
</activity>
56+
57+
<!-- The robot controller service in which most of the robot functionality is managed -->
58+
<service
59+
android:name="com.qualcomm.ftccommon.FtcRobotControllerService"
60+
android:enabled="true" />
61+
62+
63+
<!-- Assistant that autostarts the robot controller on android boot (if it's supposed to) -->
64+
<receiver
65+
android:enabled="true"
66+
android:exported="true"
67+
android:name="org.firstinspires.ftc.ftccommon.internal.RunOnBoot"
68+
android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
69+
70+
<intent-filter>
71+
<category android:name="android.intent.category.DEFAULT" />
72+
<action android:name="android.intent.action.BOOT_COMPLETED" />
73+
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
74+
</intent-filter>
75+
</receiver>
76+
77+
</application>
78+
79+
</manifest>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd">
3+
<Tracking>
4+
<ImageTarget name="Wheels" size="254.000000 184.154922" />
5+
<ImageTarget name="Tools" size="254.000000 184.154922" />
6+
<ImageTarget name="Legos" size="254.000000 184.154922" />
7+
<ImageTarget name="Gears" size="254.000000 184.154922" />
8+
</Tracking>
9+
</QCARConfig>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<QCARConfig>
3+
<Tracking>
4+
<VuMark name="RelicRecovery" size="304.80000376701355 223.630235354" />
5+
</Tracking>
6+
</QCARConfig>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0"?>
2+
<QCARConfig xsi:noNamespaceSchemaLocation="qcar_config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<Tracking>
4+
<ImageTarget name="stones" size="247 173"/>
5+
<ImageTarget name="chips" size="247 173"/>
6+
</Tracking>
7+
</QCARConfig>
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="qcar_config.xsd">
3+
<Tracking>
4+
<ImageTarget name="BlueTowerGoal" size="257.299988 171.533325" />
5+
<ImageTarget name="RedTowerGoal" size="257.299988 171.533325" />
6+
<ImageTarget name="RedAlliance" size="242.600006 171.430405" />
7+
<ImageTarget name="BlueAlliance" size="252.500000 171.466522" />
8+
<ImageTarget name="FrontWall" size="177.800003 177.800003" />
9+
</Tracking>
10+
</QCARConfig>

FtcRobotController/src/main/assets/qcar_config.xsd

Whitespace-only changes.

0 commit comments

Comments
 (0)