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
|
|
|
|
2023-05-03 08:02:35 -03:00
|
|
|
#include "AP_OpticalFlow_config.h"
|
2021-12-24 01:47:21 -04:00
|
|
|
|
|
|
|
#if AP_OPTICALFLOW_ONBOARD_ENABLED
|
|
|
|
|
2023-05-03 08:02:35 -03:00
|
|
|
#include <AP_OpticalFlow/AP_OpticalFlow_Backend.h>
|
2015-12-14 11:20:28 -04:00
|
|
|
|
2021-12-23 20:05:30 -04:00
|
|
|
#include "AP_OpticalFlow.h"
|
2015-11-24 05:34:08 -04:00
|
|
|
|
|
|
|
class AP_OpticalFlow_Onboard : public OpticalFlow_backend
|
|
|
|
{
|
|
|
|
public:
|
2022-08-14 22:31:14 -03:00
|
|
|
|
|
|
|
using OpticalFlow_backend::OpticalFlow_backend;
|
|
|
|
|
2018-11-07 08:13:02 -04:00
|
|
|
void init(void) override;
|
|
|
|
void update(void) override;
|
2015-11-24 05:34:08 -04:00
|
|
|
private:
|
|
|
|
uint32_t _last_read_ms;
|
|
|
|
};
|
2021-12-24 01:47:21 -04:00
|
|
|
|
|
|
|
#endif // AP_OPTICALFLOW_ONBOARD_ENABLED
|