APM:Libraries
AP_RangeFinder_analog.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RangeFinder.h"
4 #include "RangeFinder_Backend.h"
5 
7 {
8 public:
9  // constructor
11 
12  // static detection function
13  static bool detect(RangeFinder::RangeFinder_State &_state);
14 
15  // update state
16  void update(void);
17 
18 protected:
19 
20  MAV_DISTANCE_SENSOR _get_mav_distance_sensor_type() const override {
21  return MAV_DISTANCE_SENSOR_UNKNOWN;
22  }
23 
24 private:
25  // update raw voltage
26  void update_voltage(void);
27 
29 };
MAV_DISTANCE_SENSOR _get_mav_distance_sensor_type() const override
static bool detect(RangeFinder::RangeFinder_State &_state)
AP_RangeFinder_analog(RangeFinder::RangeFinder_State &_state)
AP_HAL::AnalogSource * source