mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_AIS: move to config.h pattern
This commit is contained in:
parent
8afc07d85b
commit
db9b57c0a3
@ -14,15 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL_Boards.h>
|
#include "AP_AIS_config.h"
|
||||||
|
|
||||||
#ifndef AP_AIS_ENABLED
|
|
||||||
#if BOARD_FLASH_SIZE <= 1024
|
|
||||||
#define AP_AIS_ENABLED 0
|
|
||||||
#else
|
|
||||||
#define AP_AIS_ENABLED 2
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if AP_AIS_ENABLED
|
#if AP_AIS_ENABLED
|
||||||
// 0 fully disabled and compiled out
|
// 0 fully disabled and compiled out
|
||||||
|
11
libraries/AP_AIS/AP_AIS_config.h
Normal file
11
libraries/AP_AIS/AP_AIS_config.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <AP_HAL/AP_HAL_Boards.h>
|
||||||
|
|
||||||
|
#ifndef AP_AIS_ENABLED
|
||||||
|
#if BOARD_FLASH_SIZE <= 1024
|
||||||
|
#define AP_AIS_ENABLED 0
|
||||||
|
#else
|
||||||
|
#define AP_AIS_ENABLED 2
|
||||||
|
#endif
|
||||||
|
#endif
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_Logger/LogStructure.h>
|
#include <AP_Logger/LogStructure.h>
|
||||||
#include "AP_AIS.h"
|
#include "AP_AIS_config.h"
|
||||||
|
|
||||||
#define LOG_IDS_FROM_AIS \
|
#define LOG_IDS_FROM_AIS \
|
||||||
LOG_AIS_RAW_MSG,\
|
LOG_AIS_RAW_MSG,\
|
||||||
|
Loading…
Reference in New Issue
Block a user