diff --git a/conf/airframes/booz2_a1.xml b/conf/airframes/booz2_a1.xml index 0a0dc90bd4..7547881bac 100644 --- a/conf/airframes/booz2_a1.xml +++ b/conf/airframes/booz2_a1.xml @@ -8,10 +8,10 @@ - - - - + + + +
@@ -138,15 +138,16 @@ # prevents motors from ever starting #ap.CFLAGS += -DKILL_MOTORS +include $(PAPARAZZI_SRC)/conf/autopilot/booz2_autopilot.makefile +include $(PAPARAZZI_SRC)/conf/autopilot/booz2_test_progs.makefile + +sim.CFLAGS += -DBSM_PARAMS=\"booz_sensors_model_params_booz2_a1.h\" include $(PAPARAZZI_SRC)/conf/autopilot/booz2_simulator.makefile include $(PAPARAZZI_SRC)/conf/autopilot/booz2_actuators_buss.makefile include $(PAPARAZZI_SRC)/conf/autopilot/booz2_imu_b2v1.makefile -include $(PAPARAZZI_SRC)/conf/autopilot/booz2_autopilot.makefile -include $(PAPARAZZI_SRC)/conf/autopilot/booz2_test_progs.makefile -sim.CFLAGS += -DBSM_PARAMS=\"booz_sensors_model_params_booz2_a1.h\" diff --git a/conf/airframes/booz2_a2.xml b/conf/airframes/booz2_a2.xml index a57176250d..d7f1687a2c 100644 --- a/conf/airframes/booz2_a2.xml +++ b/conf/airframes/booz2_a2.xml @@ -1,23 +1,19 @@ - + - - - - + + + + - - - - + + + + -
- -
-
diff --git a/conf/autopilot/booz2_imu_b2v1.makefile b/conf/autopilot/booz2_imu_b2v1.makefile index ba8ef145f3..ea94bb1047 100644 --- a/conf/autopilot/booz2_imu_b2v1.makefile +++ b/conf/autopilot/booz2_imu_b2v1.makefile @@ -21,14 +21,14 @@ # # # -# -# -# -# # # # # +# +# +# +# # # # @@ -37,8 +37,6 @@ # # # -# # # # diff --git a/conf/settings/settings_booz2_asctec.xml b/conf/settings/settings_booz2_asctec.xml index 4ab1d48960..05d6777996 100644 --- a/conf/settings/settings_booz2_asctec.xml +++ b/conf/settings/settings_booz2_asctec.xml @@ -7,7 +7,7 @@ - + diff --git a/sw/simulator/booz2_sim_main.c b/sw/simulator/booz2_sim_main.c index 341344e5f4..c84e804744 100644 --- a/sw/simulator/booz2_sim_main.c +++ b/sw/simulator/booz2_sim_main.c @@ -204,12 +204,19 @@ static void on_DL_SETTING(IvyClientPtr app __attribute__ ((unused)), #include "actuators.h" #include "booz_supervision_int.h" static void booz_sim_read_actuators(void) { + + + printf("actatuors %d %d %d %d\n", + Actuator(SERVO_FRONT), Actuator(SERVO_BACK), Actuator(SERVO_RIGHT), Actuator(SERVO_LEFT)); + printf("actatuors %d %d %d %d\n", + Actuator(SERVO_FRONT), Actuator(SERVO_BACK), Actuator(SERVO_RIGHT), Actuator(SERVO_LEFT)); + booz_sim_actuators_values[0] = (double)Actuator(SERVO_FRONT) / BOOZ_SUPERVISION_MAX_CMD; booz_sim_actuators_values[1] = (double)Actuator(SERVO_BACK) / BOOZ_SUPERVISION_MAX_CMD; booz_sim_actuators_values[2] = (double)Actuator(SERVO_RIGHT) / BOOZ_SUPERVISION_MAX_CMD; booz_sim_actuators_values[3] = (double)Actuator(SERVO_LEFT) / BOOZ_SUPERVISION_MAX_CMD; - printf("%f %f %f %f\n", booz_sim_actuators_values[0], booz_sim_actuators_values[1], booz_sim_actuators_values[2], booz_sim_actuators_values[3]); + // printf("%f %f %f %f\n", booz_sim_actuators_values[0], booz_sim_actuators_values[1], booz_sim_actuators_values[2], booz_sim_actuators_values[3]); }