Package frc.team449.util

Functions

Link copied to clipboard
fun simBooleanProp(sim: SimBoolean): ReadWriteProperty<Any?, Boolean>

A delegated property of type Boolean backed by a SimBoolean

Link copied to clipboard
fun simDoubleProp(sim: SimDouble): ReadWriteProperty<Any?, Double>

A delegated property of type Double backed by a SimDouble

Link copied to clipboard
fun <B, F> wrappedProp(backing: B, get: (B) -> F): ReadOnlyProperty<Any?, F>

A property with a custom getter but a backing field of a different type

fun <B, F> wrappedProp(    backing: B,     get: (B) -> F,     set: (B, F) -> Unit): ReadWriteProperty<Any?, F>

A property with a custom getter and setter but a backing field of a different type