CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AC_PrecLand/AC_PrecLand_SITL.h
Views: 1798
1
#pragma once
2
3
#include "AC_PrecLand_config.h"
4
5
#if AC_PRECLAND_SITL_ENABLED
6
7
#include <AC_PrecLand/AC_PrecLand_Backend.h>
8
#include <AP_Math/AP_Math.h>
9
#include <SITL/SITL.h>
10
11
/*
12
* AC_PrecLand_SITL - supplies vectors to a fake landing target
13
*/
14
15
class AC_PrecLand_SITL : public AC_PrecLand_Backend
16
{
17
public:
18
19
// Constructor
20
using AC_PrecLand_Backend::AC_PrecLand_Backend;
21
22
// perform any required initialisation of backend
23
void init() override;
24
25
// retrieve updates from sensor
26
void update() override;
27
28
private:
29
SITL::SIM *_sitl; // sitl instance pointer
30
};
31
32
#endif // AC_PRECLAND_SITL_ENABLED
33
34