HAL_SITL_Class.h 444 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <AP_HAL/AP_HAL.h>
  3. #if CONFIG_HAL_BOARD == HAL_BOARD_SITL
  4. #include "AP_HAL_SITL.h"
  5. #include "AP_HAL_SITL_Namespace.h"
  6. #include "SITL_State.h"
  7. class HAL_SITL : public AP_HAL::HAL {
  8. public:
  9. HAL_SITL();
  10. void run(int argc, char * const argv[], Callbacks* callbacks) const override;
  11. static void actually_reboot();
  12. private:
  13. HALSITL::SITL_State *_sitl_state;
  14. };
  15. #endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL