TeamMeanMachine / meanlib

A Kotlin FRC library
The Unlicense
16 stars 3 forks source link

Add comms method #23

Closed andrewda closed 5 years ago

andrewda commented 5 years ago

This adds a method that gets called every time communications are established between the robot and the driver station.

An alternative would be:

({ ds.isDSConnected }).whenTrue { robotProgram.comms() }

Both work equally well in my testing.

andrewda commented 5 years ago

Alright, tested and ran with 2+ hours of drive practice without an issue.

tylerscheuble commented 5 years ago

Looks great! Thanks Andrew.