SachemAftershock / 2019-robot-code

Sachem Aftershock's code for FRC 2019 Destination: Deep Space
3 stars 0 forks source link

ButtonBox needs comms from RoboRIO to it, to sync after power ups & outs. #14

Open JimTripi opened 5 years ago

JimTripi commented 5 years ago

DeepSpaceButtonBox needs comms from RoboRIO to it, to allow it to sync at startup and any power out either device. Need to know what current state the RoboRIO is in elevator height-wise, and hatch/cargo grabber position. Need to devise way to deal with any manual intermediate settings- what should the LEDs on the ButtonBox do? What way is there for the RoboRIO to communicate these information to the ButtonBox? ButtonBox is currently looking like serial port, joystick, keyboard, and mouse to the Windows laptop. How can Driver Station make use of these?

DanWaxman commented 5 years ago

One (hacky) way to get around this is to put the information needed on NetworkTables then serial it over to the Teensy. I've used pySerial before for other projects and that worked well.

The other option is to figure out the HID output blobs (ref). To be honest I'm not totally sure how to set that up, and while it's cleaner I think it would take significantly more time than the first option.