ddesousa:
Thanks! That really helped! I only need quaternions and not the other data sets. Do you know if there is anyway to not incorporate the other data sets into the FIFO buffer to reduce flash and RAM?
The quaternions FIFO buffer code is precompiled this is sent to the MPU6050 at startup. With this said i believe you sould discover the flags that enable what data is sent to the fifo buffer reducing the size. but this may not improve memory as it only changes what the FIFO buffer gets. Jeffs code simplified programming by defaulting most of the settings into the array of bytes. you might be able to determine which byte affects the fifo buffer contents and adjust it.
see code around line 300 of the MPU6050_6Axis_MotionApps20.h
0x07, 0x41, 0x05, 0xF1, 0x20, 0x28, 0x30, 0x38, // CFG_8 inv_send_quaternion
0x07, 0x7E, 0x01, 0x30, // CFG_16 inv_set_footer
0x07, 0x46, 0x01, 0x9A, // CFG_GYRO_SOURCE inv_send_gyro
0x07, 0x47, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_9 inv_send_gyro -> inv_construct3_fifo
0x07, 0x6C, 0x04, 0xF1, 0x28, 0x30, 0x38, // CFG_12 inv_send_accel -> inv_construct3_fifo
0x02, 0x16, 0x02, 0x00, 0x01 // D_0_22 inv_set_fifo_rate
i'm not sure how to disable the send for the other data the configuration is here. but I know that there is code in the development package that can do this. I have not researched it thoroughly. I'm not sure this will help with your problem.
Z