Browse Source

AP_HAL_Linux: Storage: use define from HAL for directory

mission-4.1.18
Lucas De Marchi 7 years ago committed by Lucas De Marchi
parent
commit
cbb9dcc2a1
  1. 9
      libraries/AP_HAL_Linux/Storage.cpp

9
libraries/AP_HAL_Linux/Storage.cpp

@ -20,15 +20,12 @@ using namespace Linux;
// name the storage file after the sketch so you can use the same board // name the storage file after the sketch so you can use the same board
// card for ArduCopter and ArduPlane // card for ArduCopter and ArduPlane
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO #if APM_BUILD_TYPE(APM_BUILD_Replay)
#define STORAGE_DIR "/data/ftp/internal_000/ardupilot"
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_EDGE
#define STORAGE_DIR "/var/lib/ardupilot"
#elif APM_BUILD_TYPE(APM_BUILD_Replay)
#define STORAGE_DIR "." #define STORAGE_DIR "."
#else #else
#define STORAGE_DIR "/var/APM" #define STORAGE_DIR HAL_BOARD_STORAGE_DIRECTORY
#endif #endif
#define STORAGE_FILE STORAGE_DIR "/" SKETCHNAME ".stg" #define STORAGE_FILE STORAGE_DIR "/" SKETCHNAME ".stg"
extern const AP_HAL::HAL& hal; extern const AP_HAL::HAL& hal;

Loading…
Cancel
Save