FateComponent
The main feature added by this extension is the FateComponent, which can be added to your OpModes alongside other components:
kotlin
addComponents(
/* existing components */
FateComponent
)FateComponent will automatically log timestamps and the current Command snapshot at the end of every OpMode loop!
Basic Logging Methods
To log a message, use the write method:
kotlin
// in `onUpdate` method
FateComponent.write("ChannelName", object)Channels
You can also use FateComponent to create channel objects!
kotlin
val channel = FateComponent.createChannel("ChannelName", SomeClass::class)WARNING
Channels must be created during an OpMode. Creating a channel before an OpMode is initialized will result in an exception.