Plane: Use arming voltage

This commit is contained in:
Michael du Breuil 2016-02-09 16:31:46 -07:00 committed by Tom Pittenger
parent 21bdf32d33
commit 0117522998
1 changed files with 3 additions and 3 deletions

View File

@ -117,8 +117,8 @@ class AP_Arming_Plane : public AP_Arming
{
public:
AP_Arming_Plane(const AP_AHRS &ahrs_ref, const AP_Baro &baro, Compass &compass,
const enum HomeState &home_set) :
AP_Arming(ahrs_ref, baro, compass, home_set) {
const AP_BattMonitor &battery, const enum HomeState &home_set) :
AP_Arming(ahrs_ref, baro, compass, battery, home_set) {
AP_Param::setup_object_defaults(this, var_info);
}
bool pre_arm_checks(bool report);
@ -707,7 +707,7 @@ private:
#endif
// Arming/Disarming mangement class
AP_Arming_Plane arming {ahrs, barometer, compass, home_is_set };
AP_Arming_Plane arming {ahrs, barometer, compass, battery, home_is_set };
AP_Param param_loader {var_info};