mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Rover: DataFlash frontend/backend split
This commit is contained in:
parent
788faf1f7d
commit
e9e59e6c38
@ -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),
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user