AP_HAL: provide default directory for Linux boards

/var/lib/<project> is more in line to where projects save their data.
Also, remove APM from dir name as it should had been done some time
ago.

This is only the default (and recommended for any new board). Existing
boards that want to adopt the default can remove their defines.
This commit is contained in:
Lucas De Marchi 2017-10-20 13:08:09 -07:00
parent c96bc54254
commit d2ba8409d0
1 changed files with 8 additions and 0 deletions

View File

@ -375,3 +375,11 @@
#define HAL_HAVE_BOARD_VOLTAGE 1
#define HAL_HAVE_SAFETY_SWITCH 1
#ifndef HAL_BOARD_LOG_DIRECTORY
#define HAL_BOARD_LOG_DIRECTORY "/var/lib/ardupilot/logs"
#endif
#ifndef HAL_BOARD_TERRAIN_DIRECTORY
#define HAL_BOARD_TERRAIN_DIRECTORY "/var/lib/ardupilot/terrain"
#endif