Rover: DataFlash frontend/backend split

This commit is contained in:
Peter Barker 2015-06-26 09:15:47 +10:00 committed by Andrew Tridgell
parent 788faf1f7d
commit e9e59e6c38
2 changed files with 1 additions and 13 deletions

View File

@ -25,9 +25,6 @@ Rover::Rover(void) :
channel_steer(NULL),
channel_throttle(NULL),
channel_learn(NULL),
#if defined(HAL_BOARD_LOG_DIRECTORY)
DataFlash(HAL_BOARD_LOG_DIRECTORY),
#endif
in_log_download(false),
modes(&g.mode1),
L1_controller(ahrs),

View File

@ -133,16 +133,7 @@ private:
RC_Channel *channel_throttle;
RC_Channel *channel_learn;
// DataFlash
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
DataFlash_APM1 DataFlash;
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM2
DataFlash_APM2 DataFlash;
#elif defined(HAL_BOARD_LOG_DIRECTORY)
DataFlash_File DataFlash;
#else
DataFlash_Empty DataFlash;
#endif
DataFlash_Class DataFlash;
bool in_log_download;