Hi,
I've been working with the MPU6050 (using an Uno) and have successfully read data from the DMP using the interrupt (thanks to Jeff Rowberg). I'm now trying to add a gps unit (adafruit ultimate gps) to the project. Ideally, I would like to read the DMP at 50 Hz and the gps at 5Hz, adding gps lat and lon data to the output when it is available. The issue I'm having (I think) is that the frequency of the interrupt prevents the gps from updating its position through SoftwareSerial, if add a delay to allow the gps data to update, I get frequent FIFO overflow. An example of the data output I'm looking for is below:
Example data format
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z, lat, lon
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z
q.w, q.x, q.y, q.z, lat, lon
...
Is this possible using DMP with the interrupt? Or would it be better to read raw accel and gyro values and apply a Kalman filter? Any thoughts or suggestions to point me in the right direction would be appreciated. Thanks.