Skip to content

Commit

Permalink
Docs here we come!
Browse files Browse the repository at this point in the history
  • Loading branch information
richpant committed Dec 28, 2024
1 parent 3c93145 commit 0db1ccd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 41 deletions.
27 changes: 0 additions & 27 deletions TeamCode/src/main/java/baronTest.java

This file was deleted.

14 changes: 12 additions & 2 deletions TeamCode/src/main/java/pedroPathing/constants/FConstants.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
package pedroPathing.constants;

import com.acmerobotics.dashboard.config.Config;
import com.pedropathing.localization.Localizers;
import com.pedropathing.follower.FollowerConstants;
import com.pedropathing.util.CustomPIDFCoefficients;
import com.qualcomm.robotcore.hardware.DcMotorSimple;

@Config
public class FConstants {
static {
FollowerConstants.mass = 5;
FollowerConstants.localizers = Localizers.OTOS;
FollowerConstants.zeroPowerAccelerationMultiplier = 4;
FollowerConstants.leftFrontMotorDirection = DcMotorSimple.Direction.REVERSE;
FollowerConstants.leftRearMotorDirection = DcMotorSimple.Direction.REVERSE;
FollowerConstants.rightFrontMotorDirection = DcMotorSimple.Direction.FORWARD;
FollowerConstants.rightRearMotorDirection = DcMotorSimple.Direction.FORWARD;
FollowerConstants.xMovement = 57.8741;
FollowerConstants.yMovement = 52.295;
FollowerConstants.forwardZeroPowerAcceleration = -41.278;
FollowerConstants.lateralZeroPowerAcceleration = -59.7819;
FollowerConstants.translationalPIDFCoefficients = new CustomPIDFCoefficients(0.1,0,0.01,0);
FollowerConstants.headingPIDFCoefficients = new CustomPIDFCoefficients(2,0,0.1,0);
}
}
14 changes: 3 additions & 11 deletions TeamCode/src/main/java/pedroPathing/constants/LConstants.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
package pedroPathing.constants;

import android.graphics.Path;

import com.acmerobotics.dashboard.config.Config;
import com.pedropathing.localization.Encoder;
import com.pedropathing.localization.constants.OTOSConstants;
import com.qualcomm.hardware.sparkfun.SparkFunOTOS;


import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit;
import org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit;
import com.qualcomm.hardware.sparkfun.SparkFunOTOS.Pose2D;

@Config
public class LConstants {
static {
OTOSConstants.offset = new Pose2D(3, 2, (3 *Math.PI) / 2);
OTOSConstants.offset = new SparkFunOTOS.Pose2D(3,2,Math.toRadians(270));

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public void init() {
telemetryA.addLine("Make sure you have enough room, since the robot has inertia after cutting power.");
telemetryA.addLine("After running the distance, the robot will cut power from the drivetrain and display the forward velocity.");
telemetryA.addLine("Press CROSS or A on game pad 1 to stop.");
telemetryA.addData("pose", poseUpdater.getPose());
telemetryA.update();

}
Expand Down
2 changes: 1 addition & 1 deletion build.dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
implementation 'org.firstinspires.ftc:Hardware:10.1.1'
implementation 'org.firstinspires.ftc:FtcCommon:10.1.1'
implementation 'org.firstinspires.ftc:Vision:10.1.1'
implementation 'com.pedropathing:pedro:0.0.1-beta8'
implementation 'com.pedropathing:pedro:0.0.1-beta12'
//noinspection GradleDependency
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.acmerobotics.dashboard:dashboard:0.4.16'
Expand Down

0 comments on commit 0db1ccd

Please sign in to comment.