Skip to content

Commit

Permalink
gdfg
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Apr 12, 2024
1 parent 319d1a7 commit 896ac8f
Show file tree
Hide file tree
Showing 3 changed files with 911 additions and 0 deletions.
27 changes: 27 additions & 0 deletions libraries/AP_HAL_SITL/hwdef/scripts/defaults_normal.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// this file is inserted (by chibios_hwdef.py) into hwdef.h when
// configuring for "normal" builds - typically vehicle binaries but
// also examples.

#ifndef HAL_DSHOT_ALARM_ENABLED
#define HAL_DSHOT_ALARM_ENABLED (HAL_PWM_COUNT>0)
#endif

#ifndef HAL_BOARD_LOG_DIRECTORY
#define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS"
#endif

// a similar define is present in AP_HAL_Boards.h:
#ifndef HAL_OS_FATFS_IO
#define HAL_OS_FATFS_IO 0
#endif

#ifndef AP_TERRAIN_AVAILABLE
// enable terrain only if there's an SD card available:
#define AP_TERRAIN_AVAILABLE HAL_OS_FATFS_IO
#endif

#if AP_TERRAIN_AVAILABLE
#ifndef HAL_BOARD_TERRAIN_DIRECTORY
#define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
#endif
#endif // AP_TERRAIN_AVAILABLE
Loading

0 comments on commit 896ac8f

Please sign in to comment.