2014-11-17 01:33:23 -04:00
|
|
|
/*
|
|
|
|
* AP_IRLock_PX4.h
|
|
|
|
*
|
|
|
|
* Created on: Nov 10, 2014
|
|
|
|
* Author: MLandes
|
|
|
|
*/
|
2016-02-17 21:25:31 -04:00
|
|
|
#pragma once
|
2014-11-17 01:33:23 -04:00
|
|
|
|
|
|
|
#include "IRLock.h"
|
|
|
|
|
|
|
|
class AP_IRLock_PX4 : public IRLock
|
|
|
|
{
|
|
|
|
public:
|
2015-08-31 02:17:20 -03:00
|
|
|
AP_IRLock_PX4();
|
2014-11-17 01:33:23 -04:00
|
|
|
|
2015-08-31 02:17:20 -03:00
|
|
|
// init - initialize sensor library
|
|
|
|
virtual void init();
|
2014-11-17 01:33:23 -04:00
|
|
|
|
2015-08-31 02:17:20 -03:00
|
|
|
// retrieve latest sensor data - returns true if new data is available
|
|
|
|
virtual bool update();
|
2014-11-17 01:33:23 -04:00
|
|
|
|
|
|
|
private:
|
2015-08-31 02:17:20 -03:00
|
|
|
int _fd;
|
|
|
|
uint64_t _last_timestamp;
|
2014-11-17 01:33:23 -04:00
|
|
|
};
|