Bingu

object Bingu : SubsystemBase

Bingu is a utility object for binding Xbox controller buttons to commands.

Functions

Link copied to clipboard
open fun addChild(p0: String, p1: Sendable)
Link copied to clipboard
fun bind(button: Button, commandSupplier: () -> Command): ButtonBinding

Creates a pair of a Button and a command supplier function.

Link copied to clipboard
fun XboxController.bindings(vararg pair: ButtonBinding)

Extension function for XboxController to bind multiple button-command pairs.

Link copied to clipboard
open fun defer(p0: Supplier<Command>): Command
Link copied to clipboard
open fun getCurrentCommand(): Command
Link copied to clipboard
open fun getDefaultCommand(): Command
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open fun getSubsystem(): String
Link copied to clipboard
open override fun initSendable(p0: SendableBuilder)
Link copied to clipboard
open override fun periodic()

Periodically checks the state of each button and schedules the corresponding command if the button is pressed.

Link copied to clipboard
open fun register()
Link copied to clipboard
Link copied to clipboard
open fun run(p0: Runnable): Command
Link copied to clipboard
open fun runEnd(p0: Runnable, p1: Runnable): Command
Link copied to clipboard
open fun runOnce(p0: Runnable): Command
Link copied to clipboard
open fun setDefaultCommand(p0: Command)
Link copied to clipboard
open fun setName(p0: String)
Link copied to clipboard
open fun setSubsystem(p0: String)
Link copied to clipboard
Link copied to clipboard
open fun startEnd(p0: Runnable, p1: Runnable): Command
Link copied to clipboard
open fun startRun(p0: Runnable, p1: Runnable): Command