-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
17 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
14 changes: 12 additions & 2 deletions
14
TeamCode/src/main/java/pedroPathing/constants/FConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
TeamCode/src/main/java/pedroPathing/constants/LConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters