Browse Source

AP_Arming: remove unused set_skip_gyro_cal

master
Randy Mackay 10 years ago
parent
commit
73e7e64bb8
  1. 3
      libraries/AP_Arming/AP_Arming.cpp
  2. 2
      libraries/AP_Arming/AP_Arming.h

3
libraries/AP_Arming/AP_Arming.cpp

@ -44,7 +44,6 @@ AP_Arming::AP_Arming(const AP_AHRS &ahrs_ref, const AP_Baro &baro, Compass &comp @@ -44,7 +44,6 @@ AP_Arming::AP_Arming(const AP_AHRS &ahrs_ref, const AP_Baro &baro, Compass &comp
const enum HomeState &home_set)
: armed(false)
, logging_available(false)
, skip_gyro_cal(false)
, arming_method(NONE)
, ahrs(ahrs_ref)
, barometer(baro)
@ -130,7 +129,7 @@ bool AP_Arming::ins_checks(bool report) @@ -130,7 +129,7 @@ bool AP_Arming::ins_checks(bool report)
}
return false;
}
if (!skip_gyro_cal && ! ins.gyro_calibrated_ok_all()) {
if (!ins.gyro_calibrated_ok_all()) {
if (report) {
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, PSTR("PreArm: gyros not calibrated!"));
}

2
libraries/AP_Arming/AP_Arming.h

@ -58,7 +58,6 @@ public: @@ -58,7 +58,6 @@ public:
in a vehicle specific subclass
*/
virtual bool pre_arm_checks(bool report);
void set_skip_gyro_cal(bool set) { skip_gyro_cal = set; }
void set_logging_available(bool set) { logging_available = set; }
@ -68,7 +67,6 @@ public: @@ -68,7 +67,6 @@ public:
protected:
bool armed:1;
bool logging_available:1;
bool skip_gyro_cal:1;
//Parameters
AP_Int8 require;

Loading…
Cancel
Save