mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_BattMonitor: Add APM_BUILD_Heli
This commit is contained in:
parent
4421e4a842
commit
1d02ac768d
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user