Package-level declarations

Types

Link copied to clipboard
object Kommand

Utility object for creating various WPILib commands.

Properties

Link copied to clipboard

Extension property to convert a value in inches to meters.

Link copied to clipboard
val AprilTagFields.layout: AprilTagFieldLayout

Extension property to load the AprilTagFieldLayout for the given AprilTagFields enum value.

Link copied to clipboard

Extension property to convert a value in meters to inches.

Link copied to clipboard
val Pose2d.rotated180: Pose2d

Extension property to get a new Pose2d rotated by 180 degrees from the current pose.

Functions

Link copied to clipboard
fun List<PhotonModule>.getDecentResultPairs(condition: (PhotonPipelineResult) -> Boolean = { it.hasTargets() }): List<Pair<PhotonModule, PhotonPipelineResult>>

Extension function for a list of PhotonModule objects to get the best PhotonPipelineResult.

Link copied to clipboard
fun Pair<PhotonModule, PhotonPipelineResult>.getEstimatedPose(prevEstimatedRobotPose: Pose2d): EstimatedRobotPose?

Extension function for a Pair of PhotonModule and PhotonPipelineResult to get estimated poses.

Link copied to clipboard
fun TalonFXConfiguration.getPingu(): Pingu

Extension function to get the Pingu values from a TalonFXConfiguration.

Link copied to clipboard
fun List<Pair<PhotonModule, PhotonPipelineResult>>.hasTargets(): Boolean

Extension function for a list of Pair of PhotonModule and PhotonPipelineResult to check if any have targets.

Link copied to clipboard
fun XboxController.leftStickPosition(xDeadzone: Double, yDeadzone: Double): Pair<Double, Double>

Gets the position of the left stick based on the input from the controller.

Link copied to clipboard
operator fun Rotation2d.plus(yaw: Double): Rotation3d

Operator function to add a yaw value to a Rotation2d, resulting in a Rotation3d.

Link copied to clipboard
fun XboxController.rightStickPosition(xDeadzone: Double, yDeadzone: Double): Pair<Double, Double>

Gets the position of the right stick based on the input from the controller.

Link copied to clipboard
fun TalonFXConfiguration.setPingu(pingu: Pingu): Pingu

Extension function to set the Pingu values of a TalonFXConfiguration using a Pingu object.

Link copied to clipboard
fun Rotation2d.to3d(yaw: Double): Rotation3d

Extension function to convert a Rotation2d to a Rotation3d.

Link copied to clipboard
fun Pair<PhotonModule, PhotonPipelineResult>.updateStdDev(estimatedRobotPose: Optional<EstimatedRobotPose>)

Extension function for a Pair of PhotonModule and PhotonPipelineResult to update the standard deviations of the estimated robot pose.

Link copied to clipboard
fun Pair<PhotonModule, PhotonPipelineResult>.updateStdDev3d(estimatedRobotPose: Optional<EstimatedRobotPose>)

Extension function for a Pair of PhotonModule and PhotonPipelineResult to update the 3d standard deviations of the estimated robot pose.