Browse Source

AP_Arming: remove unused parameter and variable

mission-4.1.18
Pierre Kancir 6 years ago committed by Randy Mackay
parent
commit
dd2798d099
  1. 2
      libraries/AP_Arming/AP_Arming.cpp
  2. 3
      libraries/AP_Arming/AP_Arming.h

2
libraries/AP_Arming/AP_Arming.cpp

@ -745,7 +745,7 @@ AP_Arming::ArmingRequired AP_Arming::arming_required() @@ -745,7 +745,7 @@ AP_Arming::ArmingRequired AP_Arming::arming_required()
// Copter and sub share the same RC input limits
// Copter checks that min and max have been configured by default, Sub does not
bool AP_Arming::rc_checks_copter_sub(const bool display_failure, const RC_Channel *channels[4], const bool check_min_max) const
bool AP_Arming::rc_checks_copter_sub(const bool display_failure, const RC_Channel *channels[4]) const
{
// set rc-checks to success if RC checks are disabled
if ((checks_to_perform != ARMING_CHECK_ALL) && !(checks_to_perform & ARMING_CHECK_RC)) {

3
libraries/AP_Arming/AP_Arming.h

@ -87,7 +87,6 @@ protected: @@ -87,7 +87,6 @@ protected:
// internal members
bool armed:1;
bool logging_available:1;
uint32_t last_accel_pass_ms[INS_MAX_INSTANCES];
uint32_t last_gyro_pass_ms[INS_MAX_INSTANCES];
@ -118,7 +117,7 @@ protected: @@ -118,7 +117,7 @@ protected:
virtual bool system_checks(bool report);
bool servo_checks(bool report) const;
bool rc_checks_copter_sub(bool display_failure, const RC_Channel *channels[4], const bool check_min_max = true) const;
bool rc_checks_copter_sub(bool display_failure, const RC_Channel *channels[4]) const;
// returns true if a particular check is enabled
bool check_enabled(const enum AP_Arming::ArmingChecks check) const;

Loading…
Cancel
Save