ardupilot/libraries/AP_IRLock/AP_IRLock_SITL_Gazebo.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
563 B
C
Raw Normal View History

/*
* AP_IRLock_SITL.h
*
* Created on: June 09, 2016
* Author: Ian Chen
*/
#pragma once
2023-12-25 22:21:11 -04:00
#include <AP_HAL/utility/Socket_native.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include "IRLock.h"
class AP_IRLock_SITL_Gazebo : public IRLock
{
public:
AP_IRLock_SITL_Gazebo();
// 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:
uint32_t _last_timestamp;
2023-12-25 22:21:11 -04:00
SocketAPM_native sock;
};
#endif // CONFIG_HAL_BOARD