AP_Arming: use AP_BATT_MONITOR_MAX_INSTANCES instead of fixed array size

This commit is contained in:
Tom Pittenger 2016-03-14 09:19:09 -07:00
parent 5872512d85
commit 425c9bcd0b

View File

@ -72,7 +72,7 @@ protected:
AP_Int8 rudder_arming_value;
AP_Int16 checks_to_perform; // bitmask for which checks are required
AP_Float accel_error_threshold;
AP_Float _min_voltage[2];
AP_Float _min_voltage[AP_BATT_MONITOR_MAX_INSTANCES];
// references
const AP_AHRS &ahrs;