ardupilot/libraries/AP_IRLock/AP_IRLock_SITL.h

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

31 lines
589 B
C
Raw Normal View History

/*
* AP_IRLock_SITL.h
*
* Created on: June 09, 2016
* Author: Ian Chen
*/
#pragma once
#include "AP_IRLock_config.h"
#if AP_IRLOCK_SITL_ENABLED
2025-02-06 05:57:36 -04:00
#include "AP_IRLock.h"
#include <SITL/SITL.h>
class AP_IRLock_SITL : public AP_IRLock
{
public:
// init - initialize sensor library
2017-04-13 17:40:41 -03:00
void init(int8_t bus) override;
// retrieve latest sensor data - returns true if new data is available
2017-04-13 17:40:41 -03:00
bool update() override;
private:
SITL::SIM *_sitl; // sitl instance pointer
uint32_t _last_timestamp = 0;
};
#endif // AP_IRLOCK_SITL_ENABLED