2015-01-02 04:30:32 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2016-02-17 21:25:42 -04:00
|
|
|
#pragma once
|
2015-01-02 04:30:32 -04:00
|
|
|
|
|
|
|
#include "OpticalFlow.h"
|
|
|
|
|
|
|
|
class AP_OpticalFlow_HIL : public OpticalFlow_backend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// constructor
|
|
|
|
AP_OpticalFlow_HIL(OpticalFlow &_frontend);
|
|
|
|
|
|
|
|
// init - initialise the sensor
|
|
|
|
void init();
|
|
|
|
|
|
|
|
// update - read latest values from sensor and fill in x,y and totals.
|
|
|
|
void update(void);
|
|
|
|
};
|