I'm using the MPU6050 library by Jeff Rowberg. In the code, whole fifobuffer is not passed to the 'teapotPacket' array (for processing ,i.e, graphics emulation). Why only certain indexes are passed in the 'teapotPacket' array ?(to be precise, only indexes given below are passed)
teapotPacket[2] = fifoBuffer[0];
teapotPacket[3] = fifoBuffer[1];
teapotPacket[4] = fifoBuffer[4];
teapotPacket[5] = fifoBuffer[5];
teapotPacket[6] = fifoBuffer[8];
teapotPacket[7] = fifoBuffer[9];
teapotPacket[8] = fifoBuffer[12];
teapotPacket[9] = fifoBuffer[13];
and please clarify one more thing, why the 'teapotPacket' array is initialized with the $ , hex numbers and '\n' & '\r' characters ?
uint8_t teapotPacket[14] = { '$', 0x02, 0,0, 0,0, 0,0, 0,0, 0x00, 0x00, '\r', '\n' };