View Single Post
  #5   Spotlight this post!  
Unread 17-01-2016, 16:03
AndyB871 AndyB871 is offline
Registered User
FRC #0871
 
Join Date: Jan 2012
Location: East Islip
Posts: 37
AndyB871 has a spectacular aura aboutAndyB871 has a spectacular aura aboutAndyB871 has a spectacular aura about
Re: Java SerialPort kUsb

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.
Reply With Quote