Tracker: update time last heartbeat packet sent

This is required to support dataflash messages
This commit is contained in:
Randy Mackay 2015-12-27 13:24:39 +09:00
parent 6a5c5969fa
commit 8aa286eaaa

View File

@ -178,6 +178,7 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
switch (id) {
case MSG_HEARTBEAT:
CHECK_PAYLOAD_SIZE(HEARTBEAT);
tracker.gcs[chan-MAVLINK_COMM_0].last_heartbeat_time = AP_HAL::millis();
tracker.send_heartbeat(chan);
return true;