ardupilot/libraries/AP_IRLock/AP_IRLock_PX4.h
bstone04 cf8ce867e6 IRLock: many changes to integrate with PrecLand library
irlock_center_x_pos calculates the lateral x position of the marker in cm. relative to the quad
irlock_x_pos_to_latlon rotates the frame based x position to latitude/longtitude based coordinates
same case for the y position
add get_angle_to_target method
get_angle_to_target replaces pixel to position calculations
Also removed ahrs reference (now in AC_PrecLand lib), unused references
to orb and commented out parameter declaration
reduce max objects to 5
remove ahrs reference
add timeout
return true if new sample found
bug fix get_angle_to_target
remove unused get_frame
2015-08-31 17:57:57 +09:00

30 lines
457 B
C++

/*
* 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:
AP_IRLock_PX4();
// init - initialize sensor library
virtual void init();
// retrieve latest sensor data - returns true if new data is available
virtual bool update();
private:
int _fd;
uint64_t _last_timestamp;
};
#endif /* AP_IRLOCK_PX4_H_ */