2014-11-17 01:33:23 -04:00
|
|
|
/*
|
|
|
|
* AP_IRLock_PX4.h
|
|
|
|
*
|
|
|
|
* Created on: Nov 10, 2014
|
|
|
|
* Author: MLandes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AP_IRLOCK_PX4_H_
|
|
|
|
#define AP_IRLOCK_PX4_H_
|
|
|
|
|
|
|
|
#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
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* AP_IRLOCK_PX4_H_ */
|