mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 20:04:09 +08:00
fix nps booz sim
This commit is contained in:
@@ -67,6 +67,8 @@ sim.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
|
||||
|
||||
sim.srcs += $(SRC_BOOZ_SIM)/booz2_unsimulated_peripherals.c
|
||||
sim.srcs += firmwares/rotorcraft/main.c
|
||||
sim.srcs += mcu.c
|
||||
sim.srcs += $(SRC_ARCH)/mcu_arch.c
|
||||
|
||||
sim.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC((1./512.))'
|
||||
# -DTIME_LED=1
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<!DOCTYPE flight_plan SYSTEM "flight_plan.dtd">
|
||||
|
||||
<flight_plan alt="152" ground_alt="147" lat0="43 33 50.83" lon0="1 28 52.61" max_dist_from_home="400" name="Booz Test Enac" security_height="2">
|
||||
<header>
|
||||
#include "autopilot.h"
|
||||
</header>
|
||||
<waypoints>
|
||||
<waypoint name="HOME" x="0.0" y="0.0"/>
|
||||
<waypoint name="CLIMB" x="0.0" y="5.0"/>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
#include "booz/booz2_analog.h"
|
||||
#include "subsystems/sensors/baro.h"
|
||||
#include "baro_board.h"
|
||||
|
||||
#include "firmwares/rotorcraft/battery.h"
|
||||
|
||||
|
||||
@@ -259,7 +259,7 @@ void b2_hff_init(float init_x, float init_xdot, float init_y, float init_ydot) {
|
||||
printf("GPS_LAG_N: %d\n", GPS_LAG_N);
|
||||
printf("GPS_DT_N: %d\n", GPS_DT_N);
|
||||
printf("DT_HFILTER: %f\n", DT_HFILTER);
|
||||
printf("GPS_LAG_TOL_N: %f\n", GPS_LAG_TOL_N);
|
||||
printf("GPS_LAG_TOL_N: %i\n", GPS_LAG_TOL_N);
|
||||
#endif
|
||||
#else
|
||||
b2_hff_rb_last = &b2_hff_state;
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
#include "nps_radio_control.h"
|
||||
#include "subsystems/radio_control.h"
|
||||
#include "subsystems/imu.h"
|
||||
#include "firmwares/rotorcraft/baro.h"
|
||||
#include "subsystems/sensors/baro.h"
|
||||
#include "baro_board.h"
|
||||
#include "firmwares/rotorcraft/battery.h"
|
||||
|
||||
#include "actuators/supervision.h"
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <models/FGGroundReactions.h>
|
||||
#include <stdlib.h>
|
||||
#include "nps_fdm.h"
|
||||
#include "6dof.h"
|
||||
#include "generated/airframe.h"
|
||||
#include "math/pprz_geodetic.h"
|
||||
#include "math/pprz_geodetic_double.h"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "nps_sensors_utils.h"
|
||||
|
||||
//#include <string.h>
|
||||
#include "6dof.h"
|
||||
#include "math/pprz_algebra.h"
|
||||
|
||||
void UpdateSensorLatency(double time, gpointer cur_reading, GSList **history, double latency, gpointer sensor_reading) {
|
||||
|
||||
Reference in New Issue
Block a user