Package-level declarations

Functions

Link copied to clipboard
fun calculateAngle(distance: Span): Double
Link copied to clipboard
inline fun <T> Json.encodeToString(data: T): String
Link copied to clipboard
fun SwerveDrive.evilGetHeading(): Double
Link copied to clipboard
fun Translation2d.flip(): Translation2d
Link copied to clipboard
fun Double.near(target: Double, error: Double): Boolean
Link copied to clipboard

Raises a base to an exponent specifically to scale its value.

Link copied to clipboard
fun InterpolatingDoubleTreeMap.putMap(map: HashMap<Double, Double>)
Link copied to clipboard
fun CANSparkBase.setPosition(pos: Double)

Sets the position reference of a REV motor controller.

Link copied to clipboard
fun CANSparkBase.setVelocity(vel: Double)

Sets the velocity reference of a REV motor controller.

Link copied to clipboard
fun Boolean.toTrigger(): Trigger

Converts a boolean to a Trigger object

Link copied to clipboard
inline fun zoneTrigger(tag: String, crossinline position: () -> Pose2d = { SwerveSubsystem.getPose() }): Trigger
inline fun zoneTrigger(zone: Zone, crossinline position: () -> Pose2d = { SwerveSubsystem.getPose() }): Trigger

Returns a trigger that is true while the position is inside the zone, and false otherwise.