From 0117522998ae4f7fe9e628d010f7256ac3d34401 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Tue, 9 Feb 2016 16:31:46 -0700 Subject: [PATCH] Plane: Use arming voltage --- ArduPlane/Plane.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index e84da17036..083f2d25cd 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -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};