-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP_BoardConfig: force user to ack crashdump or get prearm failure
SW-148
- Loading branch information
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#pragma once | ||
|
||
#include <AP_HAL/AP_HAL.h> | ||
#include <AP_Filesystem/AP_Filesystem_config.h> | ||
|
||
#ifndef AP_FEATURE_BOARD_DETECT | ||
#if defined(HAL_CHIBIOS_ARCH_FMUV3) || defined(HAL_CHIBIOS_ARCH_FMUV4) || defined(HAL_CHIBIOS_ARCH_FMUV5) || defined(HAL_CHIBIOS_ARCH_MINDPXV2) || defined(HAL_CHIBIOS_ARCH_FMUV4PRO) || defined(HAL_CHIBIOS_ARCH_BRAINV51) || defined(HAL_CHIBIOS_ARCH_BRAINV52) || defined(HAL_CHIBIOS_ARCH_UBRAINV51) || defined(HAL_CHIBIOS_ARCH_COREV10) || defined(HAL_CHIBIOS_ARCH_BRAINV54) | ||
#define AP_FEATURE_BOARD_DETECT 1 | ||
#else | ||
#define AP_FEATURE_BOARD_DETECT 0 | ||
#endif | ||
#endif | ||
|
||
#ifndef AP_FEATURE_RTSCTS | ||
#define AP_FEATURE_RTSCTS 0 | ||
#endif | ||
|
||
#ifndef AP_FEATURE_SBUS_OUT | ||
#define AP_FEATURE_SBUS_OUT 0 | ||
#endif | ||
|
||
#ifndef HAL_WATCHDOG_ENABLED_DEFAULT | ||
#define HAL_WATCHDOG_ENABLED_DEFAULT false | ||
#endif | ||
|
||
#if HAL_HAVE_IMU_HEATER | ||
#ifndef HAL_IMUHEAT_P_DEFAULT | ||
#define HAL_IMUHEAT_P_DEFAULT 200 | ||
#endif | ||
#ifndef HAL_IMUHEAT_I_DEFAULT | ||
#define HAL_IMUHEAT_I_DEFAULT 0.3 | ||
#endif | ||
#endif | ||
|
||
#ifndef AP_SDCARD_STORAGE_ENABLED | ||
#define AP_SDCARD_STORAGE_ENABLED (HAL_MEM_CLASS >= HAL_MEM_CLASS_1000) && (AP_FILESYSTEM_POSIX_ENABLED || AP_FILESYSTEM_FATFS_ENABLED) && BOARD_FLASH_SIZE > 1024 | ||
#endif | ||
|
||
#ifndef AP_CRASHDUMP_ACK_ENABLED | ||
#define AP_CRASHDUMP_ACK_ENABLED AP_CRASHDUMP_ENABLED | ||
#endif |