2016-11-10 07:41:17 -04:00
|
|
|
#pragma once
|
|
|
|
|
2023-03-22 05:45:41 -03:00
|
|
|
#include "AC_PrecLand_config.h"
|
|
|
|
|
|
|
|
#if AC_PRECLAND_SITL_GAZEBO_ENABLED
|
|
|
|
|
2016-11-10 07:41:17 -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 <AP_IRLock/AP_IRLock_SITL_Gazebo.h>
|
2016-11-10 07:41:17 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* AC_PrecLand_SITL_Gazebo - implements precision landing using target
|
|
|
|
* vectors provided Gazebo via a network socket
|
|
|
|
*/
|
|
|
|
|
|
|
|
class AC_PrecLand_SITL_Gazebo : public AC_PrecLand_Backend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
AC_PrecLand_SITL_Gazebo(const AC_PrecLand& frontend, AC_PrecLand::precland_state& state);
|
|
|
|
|
|
|
|
// perform any required initialisation of backend
|
2017-02-03 03:01:03 -04:00
|
|
|
void init() override;
|
2016-11-10 07:41:17 -04:00
|
|
|
|
|
|
|
// retrieve updates from sensor
|
2017-02-03 03:01:03 -04:00
|
|
|
void update() override;
|
2016-11-10 07:41:17 -04:00
|
|
|
|
|
|
|
private:
|
2018-08-03 07:52:48 -03:00
|
|
|
AP_IRLock_SITL_Gazebo irlock;
|
2016-11-10 07:41:17 -04:00
|
|
|
};
|
|
|
|
|
2023-03-22 05:45:41 -03:00
|
|
|
#endif // AC_PRECLAND_SITL_GAZEBO_ENABLED
|