Problem Using An 9 degree of freedom IMU with Ubuntu terminal?
Arduino sends a bunch of NUL bytes after it resets. Also the buffers of your PC will probably have data from previous sessions in them, you have to flush these. Also I chose to start using frames with a preamble for communication between PC and Arduino. That way you can easily lock onto the data stream. I've written a couple of Perl scripts for this: cat_ttyUSB