// Query whether this message has already been processed in the entire message ()
if(acceleration_isProcessed==0)
{
//Serial.println("ACC_1"); // Debug
// Check whether there are enough bytes for a complete message (Note: "+ message_length" points to the next Byte after this message, therfore -1 is needed)
if(i+ACCELERATION_LENGTH-1<=messageSize)
{
//Serial.println("ACC_1_1"); // Debug
uint8_textractedMessage[ACCELERATION_LENGTH];
for(intj=0;j<ACCELERATION_LENGTH;j++)
{
extractedMessage[j]=message[i+j];
}
// Save the next 3 times 4 bytes
for(intj=0;j<=2;j++)
{
acceleration.uint32[j]=(uint32_t)extractedMessage[3+j*4]<<24|// Shift the first data-byte 24 bits to the left
(uint32_t)extractedMessage[4+j*4]<<16|// Shift the second data-byte 16 bits to the left
(uint32_t)extractedMessage[5+j*4]<<8|// Shift the third data-byte 8 bits to the left
// Query whether this message has already been processed in the entire message
if(rateofturn_isProcessed==0)
{
//Serial.println("RATE_1"); // Debug
// Check whether there are enough bytes for a complete message (Note: "+ message_length" points to the next Byte after this message, therfore -1 is needed)
if(i+RATEOFTURN_LENGTH-1<=messageSize)
{
//Serial.println("RATE_1_1"); // Debug
uint8_textractedMessage[RATEOFTURN_LENGTH];
for(intj=0;j<RATEOFTURN_LENGTH;j++)
{
extractedMessage[j]=message[i+j];
}
// Save the next 3 times 4 bytes
for(intj=0;j<=2;j++)
{
rate_of_turn.uint32[j]=(uint32_t)extractedMessage[3+j*4]<<24|// Shift the first data-byte 24 bits to the left
(uint32_t)extractedMessage[4+j*4]<<16|// Shift the second data-byte 16 bits to the left
(uint32_t)extractedMessage[5+j*4]<<8|// Shift the third data-byte 8 bits to the left
// Query whether this message has already been processed in the entire message
if(magneticfield_isProcessed==0)// Nachricht wurde in diesem Message_Buffer noch nicht verarbeitet
{
//Serial.println("MAG_1"); // Debug
// Check whether there are enough bytes for a complete message (Note: "+ message_length" points to the next Byte after this message, therfore -1 is needed)
if(i+MAGNETICFIELD_LENGTH+1<=messageSize)
{
//Serial.println("MAG_1_1"); // Debug
uint8_textractedMessage[MAGNETICFIELD_LENGTH];
for(intj=0;j<MAGNETICFIELD_LENGTH;j++)
{
extractedMessage[j]=message[i+j];
}
// Save the next 3 times 4 bytes
for(intj=0;j<=2;j++)
{
magnetic_field.uint32[j]=(uint32_t)extractedMessage[3+j*4]<<24|// Shift the first data-byte 24 bits to the left
(uint32_t)extractedMessage[4+j*4]<<16|// Shift the second data-byte 16 bits to the left
(uint32_t)extractedMessage[5+j*4]<<8|// Shift the third data-byte 8 bits to the left
// Query whether this message has already been processed in the entire message
if(quaternion_isProcessed==0)
{
//Serial.println("QUAT_1"); // Debug
// Check whether there are enough bytes for a complete message (Note: "+ message_length" points to the next Byte after this message, therfore -1 is needed)
if(i+QUATERNION_LENGTH+1<=messageSize)
{
//Serial.println("QUAT_1_1"); // Debug
uint8_textractedMessage[QUATERNION_LENGTH];
for(intj=0;j<QUATERNION_LENGTH;j++)
{
extractedMessage[j]=message[i+j];
}
// Save the next 3 times 4 bytes
for(intj=0;j<=3;j++)
{
quaternion.uint32[j]=(uint32_t)extractedMessage[3+j*4]<<24|// Shift the first data-byte 24 bits to the left
(uint32_t)extractedMessage[4+j*4]<<16|// Shift the second data-byte 16 bits to the left
(uint32_t)extractedMessage[5+j*4]<<8|// Shift the third data-byte 8 bits to the left