Serial communication is about as barebones as you can get, there's no checksum or anything like that. Our little color protocol was intended to be _very_ simple. I (the mentor) never touch code, it's all my students, so I attempt to keep the tasks as simple as possible and build nicer features as their skills grow.
As for the constructor, According to the javadoc
Quote:
Create an instance of a Serial Port class.
Defaults to 8 databits, no parity, and one stop bit.
Parameters
baudRate The baud rate to configure the serial port.
|
We did try all of the different flavors of constructor, in the off chance there's a bug in one of them.
We tried everything else you've listed (with the exception of changing the default flush mode) before I made my first update to the original post, including different roborios and different ardionos.
I hesitate to complicate things with additional threads though. It's not like we're having trouble sending the _second_ command, the robot code simply crashes after the first write.