APM:Libraries
AP_OpticalFlow_SITL.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "OpticalFlow.h"
4 #if CONFIG_HAL_BOARD == HAL_BOARD_SITL
5 #include <SITL/SITL.h>
6 
8 {
9 public:
11  AP_OpticalFlow_SITL(OpticalFlow &_frontend);
12 
13  // init - initialise the sensor
14  void init();
15 
16  // update - read latest values from sensor and fill in x,y and totals.
17  void update(void);
18 
19 private:
21  uint32_t last_flow_ms;
22 
24  uint8_t optflow_delay;
26 };
27 #endif // CONFIG_HAL_BOARD
OpticalFlow::OpticalFlow_state optflow_data[20]
AP_OpticalFlow_SITL(OpticalFlow &_frontend)
constructor