+
Skip to content

sockeye-d/routine

Repository files navigation

Routine

An experimental Kotlin implementation of WPILib's commands v3, leveraging Kotlin's coroutines. This means it doesn't require a new JVM version, and should run on control hubs just fine.

Basic usage

A routine (command in other frameworks) is constructed with the routine function:

routine {
    drivetrain.lock()
    ready()
    while (true) {
        drivetrain.drive(gamepad1.left_stick_x, gamepad1.left_stick_y, gamepad1.right_stick_x)
        if (yield()) break
    }
}.run()

About

An experimental coroutine-based command system for FTC, written in Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载