addition of sleep to reduce corrupted messages

This commit is contained in:
vivek-shankar 2017-01-27 23:34:17 -05:00
parent 5dc7aca4e7
commit c06ae0379d
1 changed files with 2 additions and 0 deletions

View File

@ -555,6 +555,8 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback(
{ //std::cout << "Multi frame sent no:"<<number << std::endl;
Generate_Transmit_Request_Frame(temporary_buffer, &frame);
serial_device_.Send_Frame(frame);
/*Sleep for some time in order not to confuse Xbee, a try to reduce errors*/
usleep(10);
//std::cout << "Frame:"<<frame << std::endl;
//std::cout << "size of frame:"<<std::strlen(temporary_buffer)<< std::endl;
number++;