Setup Pedro

This commit is contained in:
2025-09-07 19:05:31 -05:00
parent 11219015ac
commit ab5887a9c5
4 changed files with 1358 additions and 1 deletions

View File

@@ -17,8 +17,8 @@ android {
buildFeatures { buildFeatures {
buildConfig = true buildConfig = true
} }
compileSdk 34
compileSdkVersion 30
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8

View File

@@ -0,0 +1,19 @@
package org.firstinspires.ftc.teamcode.libs.pedroPathing;
import com.pedropathing.follower.Follower;
import com.pedropathing.follower.FollowerConstants;
import com.pedropathing.ftc.FollowerBuilder;
import com.pedropathing.paths.PathConstraints;
import com.qualcomm.robotcore.hardware.HardwareMap;
public class Constants {
public static FollowerConstants followerConstants = new FollowerConstants();
public static PathConstraints pathConstraints = new PathConstraints(0.99, 100, 1, 1);
public static Follower createFollower(HardwareMap hardwareMap) {
return new FollowerBuilder(followerConstants, hardwareMap)
.pathConstraints(pathConstraints)
.build();
}
}

View File

@@ -1,6 +1,8 @@
repositories { repositories {
mavenCentral() mavenCentral()
google() // Needed for androidx google() // Needed for androidx
maven { url = 'https://maven.pedropathing.com' } //Pedro
maven { url = "https://mymaven.bylazar.com/releases" } //Panels
} }
dependencies { dependencies {
@@ -13,5 +15,16 @@ dependencies {
implementation 'org.firstinspires.ftc:FtcCommon:11.0.0' implementation 'org.firstinspires.ftc:FtcCommon:11.0.0'
implementation 'org.firstinspires.ftc:Vision:11.0.0' implementation 'org.firstinspires.ftc:Vision:11.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.pedropathing:ftc:2.0.0' //PedroCore
implementation 'com.pedropathing:telemetry:0.0.6' //PedroTele
implementation 'com.bylazar:fullpanels:1.0.2' //Panels
} }