Copter: DataFlash frontend/backend split

This commit is contained in:
Peter Barker 2015-06-26 09:11:32 +10:00 committed by Andrew Tridgell
parent 7f0a0cf64f
commit 788faf1f7d
2 changed files with 1 additions and 8 deletions

View File

@ -22,9 +22,6 @@
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
Copter::Copter(void) :
#if defined(HAL_BOARD_LOG_DIRECTORY)
DataFlash(HAL_BOARD_LOG_DIRECTORY),
#endif
ins_sample_rate(AP_InertialSensor::RATE_400HZ),
flight_modes(&g.flight_mode1),
sonar_enabled(true),

View File

@ -153,11 +153,7 @@ private:
RC_Channel *channel_yaw;
// Dataflash
#if defined(HAL_BOARD_LOG_DIRECTORY)
DataFlash_File DataFlash;
#else
DataFlash_Empty DataFlash;
#endif
DataFlash_Class DataFlash;
// the rate we run the main loop at
const AP_InertialSensor::Sample_rate ins_sample_rate;