ardupilot/libraries/AP_IRLock/AP_IRLock_SITL.h
Pierre Kancir 42cc9c755a AP_IRLock: add SITL IRLock
AP_IRLock: simplify include

AP_IRLock: reduce scope of gazebo irlock_paquet

AP_IRLock: add z pos for IRLock SITL, set to 1.0 for pixycam

AP_IRLock: remove unused target size and get_angle_to_target_rad function
2019-03-01 20:28:22 +11:00

27 lines
556 B
C++

/*
* AP_IRLock_SITL.h
*
* Created on: June 09, 2016
* Author: Ian Chen
*/
#pragma once
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include "IRLock.h"
#include <SITL/SITL.h>
class AP_IRLock_SITL : public IRLock
{
public:
// init - initialize sensor library
void init(int8_t bus) override;
// retrieve latest sensor data - returns true if new data is available
bool update() override;
private:
SITL::SITL *_sitl; // sitl instance pointer
uint32_t _last_timestamp = 0;
};
#endif // CONFIG_HAL_BOARD