while(readbyte(value)== TRUE) { buffer [count++] = queue.enqueue(value); if(count == 128) {count = 0; if(parse_serial_data(buffer,22,&new_packet)==0) { if (new_packet.Address == 0x5C) { //UM6_GYRO_PROC_XY // GYRO_PROC_X MY_DATA_GYRO_PROC_X = (int16_t)new_packet.data[0]<<8; //bitshift it MY_DATA_GYRO_PROC_X |= new_packet.data[1]; Data.Gyro_Proc_X = MY_DATA_GYRO_PROC_X*0.0610352f; cout<<Data.Gyro_Proc_X<<"\t";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)