mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
AP_Terrain: allow AP_TERRAIN_AVAILABLE to be set in hwdef
Use AP_TERRAIN_AVAILABLE instead
This commit is contained in:
parent
98fb4fcbe7
commit
de404b1999
@ -19,11 +19,13 @@
|
|||||||
#include <AP_Common/Location.h>
|
#include <AP_Common/Location.h>
|
||||||
#include <AP_Filesystem/AP_Filesystem_Available.h>
|
#include <AP_Filesystem/AP_Filesystem_Available.h>
|
||||||
|
|
||||||
|
#ifndef AP_TERRAIN_AVAILABLE
|
||||||
#if HAVE_FILESYSTEM_SUPPORT && defined(HAL_BOARD_TERRAIN_DIRECTORY)
|
#if HAVE_FILESYSTEM_SUPPORT && defined(HAL_BOARD_TERRAIN_DIRECTORY)
|
||||||
#define AP_TERRAIN_AVAILABLE 1
|
#define AP_TERRAIN_AVAILABLE 1
|
||||||
#else
|
#else
|
||||||
#define AP_TERRAIN_AVAILABLE 0
|
#define AP_TERRAIN_AVAILABLE 0
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if AP_TERRAIN_AVAILABLE
|
#if AP_TERRAIN_AVAILABLE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user