5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-09 17:38:32 -04:00

Sub: move send-logs-via-mavlink code into DataFlash

This commit is contained in:
Peter Barker 2017-06-15 16:09:24 +10:00 committed by Francisco Ferreira
parent 4c1aff03a3
commit e1335a6029

View File

@ -763,7 +763,7 @@ GCS_MAVLINK_Sub::data_stream_send(void)
}
if (!sub.in_mavlink_delay && !sub.motors.armed()) {
handle_log_send(sub.DataFlash);
sub.DataFlash.handle_log_send(*this);
}
sub.gcs_out_of_time = false;
@ -1641,13 +1641,13 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
/* no break */
case MAVLINK_MSG_ID_LOG_REQUEST_LIST:
if (!sub.in_mavlink_delay && !sub.motors.armed()) {
handle_log_message(msg, sub.DataFlash);
sub.DataFlash.handle_mavlink_msg(*this, msg);
}
break;
case MAVLINK_MSG_ID_LOG_REQUEST_END:
sub.in_log_download = false;
if (!sub.in_mavlink_delay && !sub.motors.armed()) {
handle_log_message(msg, sub.DataFlash);
sub.DataFlash.handle_mavlink_msg(*this, msg);
}
break;