Browse Source

AP_RangeFinder: remove unused variables

zr-v5.1
Peter Barker 4 years ago committed by Peter Barker
parent
commit
914316a529
  1. 1
      libraries/AP_RangeFinder/AP_RangeFinder_HC_SR04.h
  2. 2
      libraries/AP_RangeFinder/AP_RangeFinder_PWM.h

1
libraries/AP_RangeFinder/AP_RangeFinder_HC_SR04.h

@ -33,7 +33,6 @@ private: @@ -33,7 +33,6 @@ private:
uint32_t last_distance_cm; // last distance reported (used to prevent glitches in measurement)
uint8_t glitch_count; // glitch counter
int8_t last_warn_echo_pin;
AP_HAL::PWMSource pwm_source;
uint32_t last_ping_ms;

2
libraries/AP_RangeFinder/AP_RangeFinder_PWM.h

@ -44,8 +44,6 @@ protected: @@ -44,8 +44,6 @@ protected:
private:
int8_t last_warn_pin; // last pin used for reading pwm (used to recognise change in pin assignment)
bool check_pin();
void check_stop_pin();
bool check_pins();

Loading…
Cancel
Save