2016-11-11 01:10:35 -04:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-22 05:45:41 -03:00
|
|
|
#include "AC_PrecLand_config.h"
|
|
|
|
|
|
|
|
#if AC_PRECLAND_SITL_ENABLED
|
|
|
|
|
2016-11-11 01:10:35 -04:00
|
|
|
#include <AC_PrecLand/AC_PrecLand_Backend.h>
|
2023-03-22 05:45:41 -03:00
|
|
|
#include <AP_Math/AP_Math.h>
|
2018-08-03 07:52:48 -03:00
|
|
|
#include <SITL/SITL.h>
|
2016-11-11 01:10:35 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* AC_PrecLand_SITL - supplies vectors to a fake landing target
|
|
|
|
*/
|
|
|
|
|
|
|
|
class AC_PrecLand_SITL : public AC_PrecLand_Backend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Constructor
|
2018-07-15 21:29:20 -03:00
|
|
|
using AC_PrecLand_Backend::AC_PrecLand_Backend;
|
2016-11-11 01:10:35 -04:00
|
|
|
|
|
|
|
// perform any required initialisation of backend
|
2017-02-03 03:01:03 -04:00
|
|
|
void init() override;
|
2016-11-11 01:10:35 -04:00
|
|
|
|
|
|
|
// retrieve updates from sensor
|
2017-02-03 03:01:03 -04:00
|
|
|
void update() override;
|
2016-11-11 01:10:35 -04:00
|
|
|
|
|
|
|
private:
|
2021-07-30 07:11:16 -03:00
|
|
|
SITL::SIM *_sitl; // sitl instance pointer
|
2016-11-11 01:10:35 -04:00
|
|
|
};
|
|
|
|
|
2023-03-22 05:45:41 -03:00
|
|
|
#endif // AC_PRECLAND_SITL_ENABLED
|