Browse Source

AP_HAL_Linux: Remove set_stop_pin from AnalogSource

master
Michael du Breuil 6 years ago committed by Andrew Tridgell
parent
commit
979a431e4a
  1. 2
      libraries/AP_HAL_Linux/AnalogIn_ADS1115.h
  2. 6
      libraries/AP_HAL_Linux/AnalogIn_IIO.cpp
  3. 2
      libraries/AP_HAL_Linux/AnalogIn_IIO.h
  4. 2
      libraries/AP_HAL_Linux/AnalogIn_Navio2.h

2
libraries/AP_HAL_Linux/AnalogIn_ADS1115.h

@ -12,8 +12,6 @@ public: @@ -12,8 +12,6 @@ public:
float read_average() override;
float read_latest() override;
void set_pin(uint8_t p) override;
void set_stop_pin(uint8_t p) override {}
void set_settle_time(uint16_t settle_time_ms) override {}
float voltage_average() override;
float voltage_latest() override;
float voltage_average_ratiometric() override;

6
libraries/AP_HAL_Linux/AnalogIn_IIO.cpp

@ -114,12 +114,6 @@ void AnalogSource_IIO::set_pin(uint8_t pin) @@ -114,12 +114,6 @@ void AnalogSource_IIO::set_pin(uint8_t pin)
select_pin();
}
void AnalogSource_IIO::set_stop_pin(uint8_t p)
{}
void AnalogSource_IIO::set_settle_time(uint16_t settle_time_ms)
{}
AnalogIn_IIO::AnalogIn_IIO()
{}

2
libraries/AP_HAL_Linux/AnalogIn_IIO.h

@ -28,8 +28,6 @@ public: @@ -28,8 +28,6 @@ public:
float read_average() override;
float read_latest() override;
void set_pin(uint8_t p) override;
void set_stop_pin(uint8_t p) override;
void set_settle_time(uint16_t settle_time_ms) override;
float voltage_average() override;
float voltage_latest() override;
float voltage_average_ratiometric() override { return voltage_average(); }

2
libraries/AP_HAL_Linux/AnalogIn_Navio2.h

@ -13,8 +13,6 @@ public: @@ -13,8 +13,6 @@ public:
float read_average() override;
float read_latest() override;
void set_pin(uint8_t p) override;
void set_stop_pin(uint8_t p) override{}
void set_settle_time(uint16_t settle_time_ms) override{}
float voltage_average() override;
float voltage_latest() override;
float voltage_average_ratiometric() override;

Loading…
Cancel
Save