mirror of https://github.com/ArduPilot/ardupilot
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:
parent
c96bc54254
commit
d2ba8409d0
|
@ -375,3 +375,11 @@
|
||||||
|
|
||||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||||
#define HAL_HAVE_SAFETY_SWITCH 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
|
||||||
|
|
Loading…
Reference in New Issue