You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
995 B
50 lines
995 B
#include <AP_HAL/AP_HAL.h> |
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL && defined(HAL_BUILD_AP_PERIPH) |
|
|
|
#include "AP_HAL_SITL.h" |
|
#include "AP_HAL_SITL_Namespace.h" |
|
#include "HAL_SITL_Class.h" |
|
#include "UARTDriver.h" |
|
#include "Scheduler.h" |
|
|
|
#include <stdio.h> |
|
#include <signal.h> |
|
#include <unistd.h> |
|
#include <stdlib.h> |
|
#include <errno.h> |
|
#include <sys/select.h> |
|
|
|
#include <AP_Param/AP_Param.h> |
|
#include <SITL/SIM_JSBSim.h> |
|
#include <AP_HAL/utility/Socket.h> |
|
|
|
extern const AP_HAL::HAL& hal; |
|
|
|
using namespace HALSITL; |
|
|
|
void SITL_State::init(int argc, char * const argv[]) { |
|
|
|
} |
|
|
|
void SITL_State::wait_clock(uint64_t wait_time_usec) { |
|
while (AP_HAL::native_micros64() < wait_time_usec) { |
|
usleep(1000); |
|
} |
|
} |
|
|
|
|
|
int SITL_State::gps_pipe(uint8_t index) { |
|
return 0; |
|
} |
|
|
|
int SITL_State::sim_fd(const char *name, const char *arg) { |
|
return 0; |
|
} |
|
|
|
int SITL_State::sim_fd_write(const char *name) { |
|
return 0; |
|
} |
|
|
|
|
|
#endif //CONFIG_HAL_BOARD == HAL_BOARD_SITL && defined(HAL_BUILD_AP_PERIPH)
|
|
|