2015-11-20 03:32:44 -04:00
|
|
|
#pragma once
|
2015-05-04 03:15:12 -03:00
|
|
|
|
2015-08-11 03:28:43 -03:00
|
|
|
#include <AP_HAL/AP_HAL.h>
|
2015-05-04 03:15:12 -03:00
|
|
|
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
|
|
|
|
2015-08-11 03:28:43 -03:00
|
|
|
#include "AP_HAL_SITL.h"
|
2015-05-04 03:15:12 -03:00
|
|
|
#include "AP_HAL_SITL_Namespace.h"
|
|
|
|
#include "SITL_State.h"
|
|
|
|
|
|
|
|
class HAL_SITL : public AP_HAL::HAL {
|
|
|
|
public:
|
2015-05-04 21:59:07 -03:00
|
|
|
HAL_SITL();
|
2015-10-19 11:26:18 -03:00
|
|
|
void run(int argc, char * const argv[], Callbacks* callbacks) const override;
|
2019-07-08 05:02:18 -03:00
|
|
|
static void actually_reboot();
|
2015-05-04 03:15:12 -03:00
|
|
|
|
|
|
|
private:
|
|
|
|
HALSITL::SITL_State *_sitl_state;
|
2019-09-22 21:39:42 -03:00
|
|
|
|
|
|
|
void setup_signal_handlers() const;
|
|
|
|
static void exit_signal_handler(int);
|
2015-05-04 03:15:12 -03:00
|
|
|
};
|
|
|
|
|
2017-01-09 08:23:23 -04:00
|
|
|
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
|