AP_LeakDetector_Backend.h 399 B

123456789101112131415
  1. #pragma once
  2. #include "AP_LeakDetector.h"
  3. class AP_LeakDetector_Backend {
  4. public:
  5. AP_LeakDetector_Backend(AP_LeakDetector &_leak_detector, AP_LeakDetector::LeakDetector_State &_state);
  6. // Each backend type must provide an implementation to read the sensor
  7. virtual void read(void) = 0;
  8. protected:
  9. AP_LeakDetector &leak_detector;
  10. AP_LeakDetector::LeakDetector_State &state;
  11. };