AP_BattMonitor: Add APM_BUILD_Heli

This commit is contained in:
Gone4Dirt 2021-09-28 09:52:34 +01:00 committed by Peter Barker
parent 4421e4a842
commit 1d02ac768d
2 changed files with 3 additions and 3 deletions

View File

@ -431,7 +431,7 @@ void AP_BattMonitor::convert_params(void) {
#if APM_BUILD_TYPE(APM_BUILD_ArduPlane)
info.old_key = 166;
#elif APM_BUILD_TYPE(APM_BUILD_ArduCopter)
#elif APM_BUILD_COPTER_OR_HELI()
info.old_key = 36;
#elif APM_BUILD_TYPE(APM_BUILD_ArduSub)
info.old_key = 33;

View File

@ -3,11 +3,11 @@
#include "AP_BattMonitor_Params.h"
#include "AP_BattMonitor.h"
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter)
#if APM_BUILD_COPTER_OR_HELI()
#define DEFAULT_LOW_BATTERY_VOLTAGE 10.5f
#else
#define DEFAULT_LOW_BATTERY_VOLTAGE 0.0f
#endif // APM_BUILD_TYPE(APM_BUILD_ArduCopter)
#endif // APM_BUILD_COPTER_OR_HELI()
const AP_Param::GroupInfo AP_BattMonitor_Params::var_info[] = {
// @Param: MONITOR