2015-11-24 05:34:08 -04:00
|
|
|
/*
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2015-12-14 11:20:28 -04:00
|
|
|
#pragma once
|
2015-11-24 05:34:08 -04:00
|
|
|
|
|
|
|
#include <AP_AHRS/AP_AHRS.h>
|
|
|
|
#include <AP_Math/AP_Math.h>
|
2015-12-14 11:20:28 -04:00
|
|
|
#include <AP_NavEKF2/AP_NavEKF2.h>
|
2016-07-14 02:08:43 -03:00
|
|
|
#include <AP_NavEKF3/AP_NavEKF3.h>
|
2015-12-14 11:20:28 -04:00
|
|
|
|
|
|
|
#include "OpticalFlow.h"
|
2015-11-24 05:34:08 -04:00
|
|
|
|
|
|
|
class AP_OpticalFlow_Onboard : public OpticalFlow_backend
|
|
|
|
{
|
|
|
|
public:
|
2016-11-19 03:18:50 -04:00
|
|
|
AP_OpticalFlow_Onboard(OpticalFlow &_frontend);
|
2015-11-24 05:34:08 -04:00
|
|
|
void init(void);
|
|
|
|
void update(void);
|
|
|
|
private:
|
|
|
|
uint32_t _last_read_ms;
|
|
|
|
};
|