Class TrajectorySequenceRunner
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.roadrunner.trajectorysequence.TrajectorySequenceRunner
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTrajectorySequenceRunner
(com.acmerobotics.roadrunner.followers.TrajectoryFollower follower, com.acmerobotics.roadrunner.control.PIDCoefficients headingPIDCoefficients, com.qualcomm.robotcore.hardware.VoltageSensor voltageSensor, List<Integer> lastDriveEncPositions, List<Integer> lastDriveEncVels, List<Integer> lastTrackingEncPositions, List<Integer> lastTrackingEncVels) -
Method Summary
Modifier and TypeMethodDescriptionvoid
followTrajectorySequenceAsync
(TrajectorySequence trajectorySequence) com.acmerobotics.roadrunner.geometry.Pose2d
boolean
isBusy()
com.acmerobotics.roadrunner.drive.DriveSignal
update
(com.acmerobotics.roadrunner.geometry.Pose2d poseEstimate, com.acmerobotics.roadrunner.geometry.Pose2d poseVelocity)
-
Field Details
-
COLOR_INACTIVE_TRAJECTORY
-
COLOR_INACTIVE_TURN
-
COLOR_INACTIVE_WAIT
-
COLOR_ACTIVE_TRAJECTORY
-
COLOR_ACTIVE_TURN
-
COLOR_ACTIVE_WAIT
-
POSE_HISTORY_LIMIT
public static int POSE_HISTORY_LIMIT
-
-
Constructor Details
-
TrajectorySequenceRunner
public TrajectorySequenceRunner(com.acmerobotics.roadrunner.followers.TrajectoryFollower follower, com.acmerobotics.roadrunner.control.PIDCoefficients headingPIDCoefficients, com.qualcomm.robotcore.hardware.VoltageSensor voltageSensor, List<Integer> lastDriveEncPositions, List<Integer> lastDriveEncVels, List<Integer> lastTrackingEncPositions, List<Integer> lastTrackingEncVels)
-
-
Method Details
-
followTrajectorySequenceAsync
-
update
@Nullable public com.acmerobotics.roadrunner.drive.DriveSignal update(com.acmerobotics.roadrunner.geometry.Pose2d poseEstimate, com.acmerobotics.roadrunner.geometry.Pose2d poseVelocity) -
getLastPoseError
public com.acmerobotics.roadrunner.geometry.Pose2d getLastPoseError() -
isBusy
public boolean isBusy()
-