Package-level declarations

Types

Link copied to clipboard
class DisplacementDelay(distance: Double) : Command

This is a delay that waits until the robot has been displaced (by driving) a certain distance. This does not use the length of the path; if you are driving in circles smaller than your distance, it will never finish.

Link copied to clipboard
class DriverControlled @JvmOverloads constructor(val driveJoystick: Joystick, val turnJoystick: Joystick, val robotCentric: Boolean = true, val invertDrive: Boolean = false, val invertTurn: Boolean = false, val invertStrafe: Boolean = false) : Command

Uses the joystick inputs to drive the robot

Link copied to clipboard
class FollowPath @JvmOverloads constructor(path: PathChain, holdEnd: Boolean = false, maxPower: Double? = null) : Command

This Command tells the PedroPath follower to follow a specific path or pathchain

Link copied to clipboard
object PedroData
Link copied to clipboard
open class PedroOpMode(var subsystems: Subsystem = arrayOf()) : LinearOpMode

This is a wrapper class for an OpMode that does the following:

Link copied to clipboard
class ProximityDelay @JvmOverloads constructor(point: Pose, distanceTolerance: Double = 4.0) : Command

This is a delay that waits until the robot is within distanceTolerance units of the specified point.

Link copied to clipboard
class Turn @JvmOverloads constructor(angle: Angle, tolerance: Angle = 5.deg) : Command

A Command that turns the robot by an angle

Link copied to clipboard
class TurnTo @JvmOverloads constructor(targetHeading: Angle, tolerance: Angle = 5.deg) : Command

A Command that turns the robot to a specified heading

Link copied to clipboard

This command updates the Pedro Path follower continuously as long as the OpMode is running.

Functions

Link copied to clipboard
fun Pose.distanceFrom(other: Pose): Double