Reduce frequency of mavlink heartbeat messages

This commit is contained in:
Jeremy Lakeman 2013-09-17 10:58:45 +09:30
parent 9f1407043a
commit 56d3609a3f

View File

@ -736,7 +736,7 @@ static void write_stream_buffer(overlay_interface *interface){
if (interface->next_heartbeat <= now){
// Queue a hearbeat now
mavlink_heartbeat(interface->txbuffer,&interface->tx_bytes_pending);
interface->next_heartbeat = now+1000;
interface->next_heartbeat = now+5000;
}else{
// prepare a new link layer packet in txbuffer
if (mavlink_encode_packet(interface))