debugx
This commit is contained in:
parent
d7dfd764c4
commit
7a52419af9
|
@ -559,8 +559,11 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback(
|
||||||
number++;
|
number++;
|
||||||
cnt=0;
|
cnt=0;
|
||||||
frame = "";
|
frame = "";
|
||||||
|
std::cout << "Total chunks:" <<total << std::endl;
|
||||||
|
header=0;
|
||||||
header = 0 | ((uint64_t)check_sum << 16) | ((uint64_t)number << 32) |((uint64_t) total << 48) ;
|
header = 0 | ((uint64_t)check_sum << 16) | ((uint64_t)number << 32) |((uint64_t) total << 48) ;
|
||||||
header_16 = u64_cvt_u16(header);
|
header_16 = u64_cvt_u16(header);
|
||||||
|
delete[] header_16;
|
||||||
std::cout << "Sent header" <<header_16[0]<<" "<<header_16[1]<<" "<<header_16[2]<<" "<<header_16[3]<<" "<< std::endl;
|
std::cout << "Sent header" <<header_16[0]<<" "<<header_16[1]<<" "<<header_16[2]<<" "<<header_16[3]<<" "<< std::endl;
|
||||||
memset(temporary_buffer, 0, MAX_BUFFER_SIZE);
|
memset(temporary_buffer, 0, MAX_BUFFER_SIZE);
|
||||||
converted_bytes = sprintf(
|
converted_bytes = sprintf(
|
||||||
|
@ -575,7 +578,7 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback(
|
||||||
Generate_Transmit_Request_Frame(temporary_buffer, &frame);
|
Generate_Transmit_Request_Frame(temporary_buffer, &frame);
|
||||||
serial_device_.Send_Frame(frame);
|
serial_device_.Send_Frame(frame);
|
||||||
}
|
}
|
||||||
delete[] header_16;
|
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue