Browse Source

Copter: DataFlash frontend/backend split

mission-4.1.18
Peter Barker 10 years ago committed by Andrew Tridgell
parent
commit
788faf1f7d
  1. 3
      ArduCopter/Copter.cpp
  2. 6
      ArduCopter/Copter.h

3
ArduCopter/Copter.cpp

@ -22,9 +22,6 @@ @@ -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),

6
ArduCopter/Copter.h

@ -153,11 +153,7 @@ private: @@ -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;

Loading…
Cancel
Save