thingthing / ardu-imu

Automatically exported from code.google.com/p/ardu-imu
0 stars 0 forks source link

EM406 changes baud rate from 38400 to 57600 #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set #define GPS_PROTOCOL 2
2. Load the code to the ArduIMU
3. Open the serial monitor and set the baud rate to 38400

If you set the baud rate at 38400, you get garbled data, change it to 57600 and 
it is all clear. This should be clarified because in the ArduPilot 2.7.1 code, 
it is set to receive the data at 38400.

This problem is most likely caused by AP_GPS library. AP_GPS_406.h is set to 
#define GPS_406_BITRATE to 57600. I am assuming that the bitrate is set that 
way because of the EM406 device, therefore, it should be noted elsewhere in the 
code that the bitrate will change with this device.

Original issue reported on code.google.com by jhall...@gmail.com on 10 Jun 2011 at 9:41