BunyipsLib

object BunyipsLib

BunyipsLib hook manager for the SDK via the Sinister utilities, allowing execution of static hooks giving BunyipsLib the ability to hook into the execution cycle of OpModes and access the classpath. The utilities here run in the background regardless of what the user is running, therefore, no interaction is needed with this class.

To use the full extent of BunyipsLib utilities at the OpMode level, consult the BunyipsOpMode.

Author

Lucas Bubner, 2024

Since

7.0.0

Types

Link copied to clipboard
class StandardSearch : FocusedSearch

Scanner target for BunyipsLib + User code.

Properties

Link copied to clipboard
val ftcEventLoop: FtcEventLoop

Utility to get the event loop for the robot from any context.

Link copied to clipboard

Whether an active user OpMode is running. Excludes BunyipsLib-integrated or system OpModes.

Link copied to clipboard
val opMode: OpMode
Link copied to clipboard
val opModeManager: OpModeManagerImpl

Utility to get the OpMode manager for the robot from any context.

Functions

Link copied to clipboard
fun getOpModeFlavor(opMode: OpMode): OpModeMeta.Flavor

Gets the flavor (Autonomous, TeleOp) of a particular opMode.

Link copied to clipboard
fun ifUserOpModeRunning(ifRunning: Consumer<OpMode>)

Runs ifRunning if the opMode is an active user OpMode.

Link copied to clipboard
fun isOpModeUserOpMode(opMode: OpMode): Boolean

Check if an opMode is a user (not System or BunyipsLib-integrated) OpMode.