AP_HAL_ChibiOS: add synthetic current sensor,fix SITL current

This commit is contained in:
Henry Wurzburg 2022-11-22 15:00:11 -06:00 committed by Andrew Tridgell
parent 6b852e39c9
commit f297e57176
1 changed files with 5 additions and 0 deletions

View File

@ -2942,6 +2942,11 @@ def add_apperiph_defaults(f):
#ifndef AP_COMPASS_DIAGONALS_ENABLED #ifndef AP_COMPASS_DIAGONALS_ENABLED
#define AP_COMPASS_DIAGONALS_ENABLED 0 #define AP_COMPASS_DIAGONALS_ENABLED 0
#endif #endif
// disable various battery monitor backends:
#ifndef AP_BATTMON_SYNTHETIC_CURRENT_ENABLED
#define AP_BATTMON_SYNTHETIC_CURRENT_ENABLED 0
#endif
''') ''')
def add_bootloader_defaults(f): def add_bootloader_defaults(f):