Skip to content

Commit 88750d5

Browse files
committed
set up libraries for the season, will need to add photon and possibly the vision library for ftclib later on if necessary
1 parent 5bb6776 commit 88750d5

File tree

8 files changed

+63
-0
lines changed

8 files changed

+63
-0
lines changed

Diff for: FtcRobotController/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ android {
2323
namespace = 'com.qualcomm.ftcrobotcontroller'
2424
}
2525

26+
repositories {
27+
mavenCentral()
28+
}
29+
2630
apply from: '../build.dependencies.gradle'

Diff for: MeepMeepTesting/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

Diff for: MeepMeepTesting/build.gradle

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
plugins {
2+
id 'java-library'
3+
}
4+
5+
java {
6+
sourceCompatibility = JavaVersion.VERSION_1_7
7+
targetCompatibility = JavaVersion.VERSION_1_7
8+
}
9+
10+
repositories {
11+
maven { url = 'https://maven.brott.dev/' }
12+
}
13+
14+
dependencies {
15+
implementation 'com.acmerobotics.roadrunner:MeepMeep:0.1.0'
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.example.meepmeeptesting;
2+
3+
import com.acmerobotics.roadrunner.Pose2d;
4+
import com.noahbres.meepmeep.MeepMeep;
5+
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder;
6+
import com.noahbres.meepmeep.roadrunner.entity.RoadRunnerBotEntity;
7+
8+
public class MeepMeepTesting {
9+
public static void main(String[] args) {
10+
MeepMeep meepMeep = new MeepMeep(800);
11+
12+
RoadRunnerBotEntity myBot = new DefaultBotBuilder(meepMeep)
13+
// Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width
14+
.setConstraints(60, 60, Math.toRadians(180), Math.toRadians(180), 15)
15+
.build();
16+
17+
myBot.runAction(myBot.getDrive().actionBuilder(new Pose2d(0, 0, 0))
18+
.lineToX(30)
19+
.turn(Math.toRadians(90))
20+
.lineToY(30)
21+
.turn(Math.toRadians(90))
22+
.lineToX(0)
23+
.turn(Math.toRadians(90))
24+
.lineToY(0)
25+
.turn(Math.toRadians(90))
26+
.build());
27+
28+
meepMeep.setBackground(MeepMeep.Background.FIELD_POWERPLAY_OFFICIAL)
29+
.setDarkMode(true)
30+
.setBackgroundAlpha(0.95f)
31+
.addEntity(myBot)
32+
.start();
33+
}
34+
}

Diff for: TeamCode/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ android {
2626
dependencies {
2727
implementation project(':FtcRobotController')
2828
annotationProcessor files('lib/OpModeAnnotationProcessor.jar')
29+
30+
implementation 'com.acmerobotics.roadrunner:core:1.0.0-beta3'
31+
implementation 'com.acmerobotics.roadrunner:actions:1.0.0-beta3'
32+
implementation 'org.ftclib.ftclib:core:2.1.1'
33+
implementation 'org.openftc:easyopencv:1.7.0'
2934
}

Diff for: build.common.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ android {
5757
minSdkVersion 24
5858
//noinspection ExpiredTargetSdkVersion
5959
targetSdkVersion 28
60+
multiDexEnabled true
6061

6162
/**
6263
* We keep the versionCode and versionName of robot controller applications in sync with

Diff for: build.dependencies.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
repositories {
22
mavenCentral()
33
google() // Needed for androidx
4+
maven { url = 'https://maven.brott.dev/' }
45
}
56

67
dependencies {

Diff for: settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include ':FtcRobotController'
22
include ':TeamCode'
3+
include ':MeepMeepTesting'

0 commit comments

Comments
 (0)