APM:Libraries
AP_RangeFinder_BBB_PRU.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RangeFinder.h"
4 #include "RangeFinder_Backend.h"
5 
6 
7 #define PRU0_CTRL_BASE 0x4a322000
8 
9 #define PRU0_IRAM_BASE 0x4a334000
10 #define PRU0_IRAM_SIZE 0x2000
11 
12 #define PRU0_DRAM_BASE 0x4a300000
13 #define PRU0_DRAM_SIZE 0x2000
14 
15 struct range {
16  uint32_t distance;
17  uint32_t status;
18 };
19 
21 {
22 public:
23  // constructor
25 
26  // static detection function
27  static bool detect();
28 
29  // update state
30  void update(void);
31 
32 protected:
33 
34  MAV_DISTANCE_SENSOR _get_mav_distance_sensor_type() const override {
35  return MAV_DISTANCE_SENSOR_ULTRASOUND;
36  }
37 
38 private:
39 
40 };
uint32_t status
MAV_DISTANCE_SENSOR _get_mav_distance_sensor_type() const override
uint32_t distance