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

This commit is contained in:
Peter Barker 2017-06-19 08:17:51 +10:00 committed by Francisco Ferreira
parent e1335a6029
commit 689a5cb238

View File

@ -587,7 +587,7 @@ GCS_MAVLINK_Rover::data_stream_send(void)
rover.gcs_out_of_time = false;
if (!rover.in_mavlink_delay) {
handle_log_send(rover.DataFlash);
rover.DataFlash.handle_log_send(*this);
}
send_queued_parameters();
@ -1520,13 +1520,13 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg)
/* no break */
case MAVLINK_MSG_ID_LOG_REQUEST_LIST:
if (!rover.in_mavlink_delay) {
handle_log_message(msg, rover.DataFlash);
rover.DataFlash.handle_mavlink_msg(*this, msg);
}
break;
case MAVLINK_MSG_ID_LOG_REQUEST_END:
rover.in_log_download = false;
if (!rover.in_mavlink_delay) {
handle_log_message(msg, rover.DataFlash);
rover.DataFlash.handle_mavlink_msg(*this, msg);
}
break;