ardupilot/libraries/AC_PrecLand/AC_PrecLand_SITL.h

33 lines
650 B
C++

#pragma once
#include "AC_PrecLand_config.h"
#if AC_PRECLAND_SITL_ENABLED
#include <AC_PrecLand/AC_PrecLand_Backend.h>
#include <AP_Math/AP_Math.h>
#include <SITL/SITL.h>
/*
* AC_PrecLand_SITL - supplies vectors to a fake landing target
*/
class AC_PrecLand_SITL : public AC_PrecLand_Backend
{
public:
// Constructor
using AC_PrecLand_Backend::AC_PrecLand_Backend;
// perform any required initialisation of backend
void init() override;
// retrieve updates from sensor
void update() override;
private:
SITL::SIM *_sitl; // sitl instance pointer
};
#endif // AC_PRECLAND_SITL_ENABLED