mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-20 11:28:58 +08:00
remove more sim_uart
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include "firmwares/fixedwing/guidance/guidance_v.h"
|
||||
#include "subsystems/commands.h"
|
||||
#include "firmwares/fixedwing/main_ap.h"
|
||||
#include "sim_uart.h"
|
||||
#include "subsystems/datalink/datalink.h"
|
||||
#include "subsystems/datalink/telemetry.h"
|
||||
#include "generated/flight_plan.h"
|
||||
@@ -100,26 +99,6 @@ value sim_init(value unit)
|
||||
{
|
||||
init_fbw();
|
||||
init_ap();
|
||||
#ifdef SIM_UART
|
||||
/* open named pipe */
|
||||
char link_pipe_name[128];
|
||||
#ifdef SIM_XBEE
|
||||
sprintf(link_pipe_name, "/tmp/pprz_xbee");
|
||||
#else
|
||||
sprintf(link_pipe_name, "/tmp/pprz_link_%d", AC_ID);
|
||||
#endif
|
||||
struct stat st;
|
||||
if (stat(link_pipe_name, &st)) {
|
||||
if (mkfifo(link_pipe_name, 0644) == -1) {
|
||||
perror("make pipe");
|
||||
exit(10);
|
||||
}
|
||||
}
|
||||
if (!(pipe_stream = fopen(link_pipe_name, "w"))) {
|
||||
perror("open pipe");
|
||||
exit(10);
|
||||
}
|
||||
#endif
|
||||
|
||||
return unit;
|
||||
}
|
||||
|
||||
@@ -37,15 +37,8 @@
|
||||
#include "generated/airframe.h" // AC_ID is required
|
||||
|
||||
#if defined SITL
|
||||
|
||||
#ifdef SIM_UART
|
||||
#include "sim_uart.h"
|
||||
#include "subsystems/datalink/pprz_transport.h"
|
||||
#include "subsystems/datalink/xbee.h"
|
||||
#else /* SIM_UART */
|
||||
/** Software In The Loop simulation uses IVY bus directly as the transport layer */
|
||||
#include "ivy_transport.h"
|
||||
#endif
|
||||
|
||||
#else /** SITL */
|
||||
|
||||
|
||||
@@ -30,10 +30,6 @@
|
||||
#include "subsystems/datalink/xbee.h"
|
||||
#include "subsystems/datalink/downlink.h"
|
||||
|
||||
#ifdef SIM_UART
|
||||
#include "sim_uart.h"
|
||||
#endif
|
||||
|
||||
/** Ground station address */
|
||||
#define GROUND_STATION_ADDR 0x100
|
||||
/** Aircraft address */
|
||||
|
||||
Reference in New Issue
Block a user