A threading framework for a FRC robot written in Java