SITL: Added comment to clarify IMU acceleration value
[ardupilot.git] / libraries / AP_Logger / AP_Logger_config.h
blob16553f2bde9235e687190dbb2bb3af4ffe7df3f2
1 #pragma once
3 #include <AP_HAL/AP_HAL_Boards.h>
4 #include <AP_Filesystem/AP_Filesystem_config.h>
5 #include <GCS_MAVLink/GCS_config.h>
7 #ifndef HAL_LOGGING_ENABLED
8 #define HAL_LOGGING_ENABLED 1
9 #endif
11 #ifndef HAL_LOGGING_BACKEND_DEFAULT_ENABLED
12 #define HAL_LOGGING_BACKEND_DEFAULT_ENABLED HAL_LOGGING_ENABLED
13 #endif
15 // set default for HAL_LOGGING_DATAFLASH_ENABLED
16 #ifndef HAL_LOGGING_DATAFLASH_ENABLED
17 #define HAL_LOGGING_DATAFLASH_ENABLED HAL_LOGGING_BACKEND_DEFAULT_ENABLED && (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
18 #endif
20 #ifndef HAL_LOGGING_MAVLINK_ENABLED
21 #define HAL_LOGGING_MAVLINK_ENABLED HAL_LOGGING_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
22 #endif
24 #ifndef HAL_LOGGING_FILESYSTEM_ENABLED
25 #define HAL_LOGGING_FILESYSTEM_ENABLED HAL_LOGGING_BACKEND_DEFAULT_ENABLED && AP_FILESYSTEM_FILE_WRITING_ENABLED
26 #endif
28 #if HAL_LOGGING_DATAFLASH_ENABLED
29 #define HAL_LOGGING_BLOCK_ENABLED HAL_LOGGING_ENABLED
30 #else
31 #define HAL_LOGGING_BLOCK_ENABLED 0
32 #endif
34 #ifndef HAL_LOGGING_FLASH_W25NXX_ENABLED
35 #define HAL_LOGGING_FLASH_W25NXX_ENABLED HAL_LOGGING_BLOCK_ENABLED
36 #endif
38 #ifndef HAL_LOGGING_FLASH_JEDEC_ENABLED
39 #define HAL_LOGGING_FLASH_JEDEC_ENABLED HAL_LOGGING_BLOCK_ENABLED
40 #endif
42 #if HAL_LOGGING_FILESYSTEM_ENABLED
44 #if !defined (HAL_BOARD_LOG_DIRECTORY)
45 #error Need HAL_BOARD_LOG_DIRECTORY for filesystem backend support
46 #endif
48 #endif
50 #ifndef HAL_LOGGER_FILE_CONTENTS_ENABLED
51 #define HAL_LOGGER_FILE_CONTENTS_ENABLED HAL_LOGGING_FILESYSTEM_ENABLED && !AP_FILESYSTEM_LITTLEFS_ENABLED
52 #endif
54 // range of IDs to allow for new messages during replay. It is very
55 // useful to be able to add new messages during a replay, but we need
56 // to avoid colliding with existing messages
57 #define REPLAY_LOG_NEW_MSG_MAX 230
58 #define REPLAY_LOG_NEW_MSG_MIN 220
60 #include <AC_Fence/AC_Fence_config.h>
61 #define HAL_LOGGER_FENCE_ENABLED HAL_LOGGING_ENABLED && AP_FENCE_ENABLED
63 #include <AP_Rally/AP_Rally_config.h>
64 #define HAL_LOGGER_RALLY_ENABLED HAL_LOGGING_ENABLED && HAL_RALLY_ENABLED