Browse Source

AP_BattMonitor: Add APM_BUILD_Heli

gps-1.3.1
Gone4Dirt 3 years ago committed by Peter Barker
parent
commit
1d02ac768d
  1. 2
      libraries/AP_BattMonitor/AP_BattMonitor.cpp
  2. 4
      libraries/AP_BattMonitor/AP_BattMonitor_Params.cpp

2
libraries/AP_BattMonitor/AP_BattMonitor.cpp

@ -431,7 +431,7 @@ void AP_BattMonitor::convert_params(void) { @@ -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;

4
libraries/AP_BattMonitor/AP_BattMonitor_Params.cpp

@ -3,11 +3,11 @@ @@ -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…
Cancel
Save