PinpointMecanumPedroPathingDrivetrain
class PinpointMecanumPedroPathingDrivetrain(hardwareMap: HardwareMap, followerConstants: FollowerConstants = FollowerConstants(), localizerConstants: PinpointConstants = PinpointConstants(), pathConstraints: PathConstraints = PathConstraints(0.99, 100.0, 1.0, 1.0), driveConstants: MecanumConstants = MecanumConstants(), initialPose: Pose = Pose()) : PedroPathingDrivetrain
A mecanum PedroPathingDrivetrain with a Pinpoint localizer.
Parameters
hardwareMap
The FTC hardware map
followerConstants
constants for the path follower
localizerConstants
constants for the pinpoint localizer
pathConstraints
constraints for path following
driveConstants
constants specific to the mecanum drivetrain
initialPose
the robot's initial pose
Constructors
Link copied to clipboard
constructor(hardwareMap: HardwareMap, followerConstants: FollowerConstants = FollowerConstants(), localizerConstants: PinpointConstants = PinpointConstants(), pathConstraints: PathConstraints = PathConstraints(0.99, 100.0, 1.0, 1.0), driveConstants: MecanumConstants = MecanumConstants(), initialPose: Pose = Pose())
Properties
Functions
Link copied to clipboard
Creates a path following action from a PathBuilder.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Follow the given line while tangentially interpolating the heading.
Link copied to clipboard
fun path(startPose: Pose = pose, block: PedroPathingActionBuilder.() -> PedroPathingActionBuilder): Action
Creates a path following action starting from startPose.
Link copied to clipboard
Ensures the attachment is in the Idle state, throwing an exception if not.
Link copied to clipboard
Set the drive powers.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Follow the given curve while tangentially interpolating the heading.
Link copied to clipboard