/** handle request to erase log data */ void GCS_MAVLINK::handle_log_request_erase(mavlink_message_t *msg, DataFlash_Class &dataflash) { mavlink_log_erase_t packet; mavlink_msg_log_erase_decode(msg, &packet); dataflash.EraseAll(); }
/** handle all types of log download requests from the GCS */ void GCS_MAVLINK::handle_log_message(mavlink_message_t *msg, DataFlash_Class &dataflash) { switch (msg->msgid) { case MAVLINK_MSG_ID_LOG_REQUEST_LIST: handle_log_request_list(msg, dataflash); break; case MAVLINK_MSG_ID_LOG_REQUEST_DATA: handle_log_request_data(msg, dataflash); break; case MAVLINK_MSG_ID_LOG_ERASE: dataflash.EraseAll(); break; case MAVLINK_MSG_ID_LOG_REQUEST_END: _log_sending = false; break; } }