Rover: handle knowledge of in_log_download in DataFlash

This commit is contained in:
Peter Barker 2017-06-19 10:22:21 +10:00 committed by Francisco Ferreira
parent f3a717f3c0
commit 3a85d8ed39
4 changed files with 0 additions and 23 deletions

View File

@ -1513,23 +1513,6 @@ void GCS_MAVLINK_Rover::handleMessage(mavlink_message_t* msg)
break;
}
case MAVLINK_MSG_ID_LOG_REQUEST_DATA:
rover.in_log_download = true;
/* no break */
case MAVLINK_MSG_ID_LOG_ERASE:
/* no break */
case MAVLINK_MSG_ID_LOG_REQUEST_LIST:
if (!rover.in_mavlink_delay) {
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) {
rover.DataFlash.handle_mavlink_msg(*this, msg);
}
break;
case MAVLINK_MSG_ID_SERIAL_CONTROL:
handle_serial_control(msg, rover.gps);
break;

View File

@ -25,7 +25,6 @@ Rover::Rover(void) :
channel_throttle(nullptr),
channel_learn(nullptr),
DataFlash{FIRMWARE_STRING},
in_log_download(false),
modes(&g.mode1),
L1_controller(ahrs, nullptr),
nav_controller(&L1_controller),

View File

@ -136,8 +136,6 @@ private:
DataFlash_Class DataFlash;
bool in_log_download;
// sensor drivers
AP_GPS gps;
AP_Baro barometer;

View File

@ -505,9 +505,6 @@ bool Rover::should_log(uint32_t mask)
if (!DataFlash.should_log()) {
return false;
}
if (in_log_download) {
return false;
}
start_logging();
return true;
}