diff --git a/conf/airframes/booz2_a1.xml b/conf/airframes/booz2_a1.xml index 2aa3c8688f..0a0dc90bd4 100644 --- a/conf/airframes/booz2_a1.xml +++ b/conf/airframes/booz2_a1.xml @@ -1,4 +1,4 @@ - + @@ -138,6 +138,8 @@ # prevents motors from ever starting #ap.CFLAGS += -DKILL_MOTORS +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 @@ -145,7 +147,6 @@ 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 diff --git a/conf/autopilot/booz2_actuators_buss.makefile b/conf/autopilot/booz2_actuators_buss.makefile index 383a5f5cef..689f142cf0 100644 --- a/conf/autopilot/booz2_actuators_buss.makefile +++ b/conf/autopilot/booz2_actuators_buss.makefile @@ -1,7 +1,22 @@ # # Booz2 Mikrokopter Actuators # -# mikrokopter controllers +# +# required xml: +#
+# +#
+# +#
+# +# +# +# +#
+# +# + +# ap.CFLAGS += -DACTUATORS=\"actuators_buss_twi_blmc_hw.h\" -DUSE_BUSS_TWI_BLMC ap.srcs += $(BOOZ_PRIV_ARCH)/actuators_buss_twi_blmc_hw.c actuators.c # on I2C0 diff --git a/conf/autopilot/booz2_imu_b2v1.makefile b/conf/autopilot/booz2_imu_b2v1.makefile index 9e325be3fc..ba8ef145f3 100644 --- a/conf/autopilot/booz2_imu_b2v1.makefile +++ b/conf/autopilot/booz2_imu_b2v1.makefile @@ -1,3 +1,53 @@ +# +# Booz2 IMU booz2v1 +# +# +# required xml: +#
+# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +#
+# +# + # imu Booz2 v1 ap.CFLAGS += -DBOOZ2_IMU_TYPE=\"booz2_imu_b2.h\" ap.CFLAGS += -DSSP_VIC_SLOT=9 @@ -10,3 +60,16 @@ ap.CFLAGS += -DUSE_AMI601 ap.srcs += AMI601.c ap.CFLAGS += -DFLOAT_T=float ap.srcs += $(BOOZ_PRIV)/booz2_imu.c + +sim.CFLAGS += -DBOOZ2_IMU_TYPE=\"booz2_imu_b2.h\" +sim.srcs += $(BOOZ_PRIV)/booz2_imu.c \ + $(BOOZ_PRIV)/booz2_imu_b2.c \ + $(BOOZ_PRIV_SIM)/booz2_imu_b2_hw.c \ + $(BOOZ_PRIV)/booz2_max1168.c \ + $(BOOZ_PRIV_SIM)/booz2_max1168_sim.c + +sim.CFLAGS += -DUSE_I2C1 +# -DI2C1_SCLL=150 -DI2C1_SCLH=150 -DI2C1_VIC_SLOT=11 -DI2C1_BUF_LEN=16 +#sim.srcs += i2c.c $(SRC_ARCH)/i2c_hw.c +sim.CFLAGS += -DUSE_AMI601 +sim.srcs += AMI601.c \ No newline at end of file diff --git a/conf/autopilot/booz2_simulator.makefile b/conf/autopilot/booz2_simulator.makefile index 5a12344c67..a8f4fe48bc 100644 --- a/conf/autopilot/booz2_simulator.makefile +++ b/conf/autopilot/booz2_simulator.makefile @@ -55,31 +55,27 @@ sim.srcs += commands.c sim.CFLAGS += -DRADIO_CONTROL -DRADIO_CONTROL_TYPE=RC_FUTABA -DRC_LED=1 sim.srcs += radio_control.c $(SRC_ARCH)/ppm_hw.c -sim.CFLAGS += -DACTUATORS=\"actuators_buss_twi_blmc_hw.h\" -DUSE_BUSS_TWI_BLMC -sim.srcs += $(BOOZ_PRIV_SIM)/actuators_buss_twi_blmc_hw.c actuators.c -sim.CFLAGS += -DUSE_I2C0 -DI2C0_SCLL=150 -DI2C0_SCLH=150 -DI2C0_VIC_SLOT=10 -sim.srcs += i2c.c $(SRC_ARCH)/i2c_hw.c - - - - -sim.CFLAGS += -DBOOZ2_IMU_TYPE=\"booz2_imu_b2.h\" -sim.srcs += $(BOOZ_PRIV)/booz2_imu.c \ - $(BOOZ_PRIV)/booz2_imu_b2.c \ - $(BOOZ_PRIV_SIM)/booz2_imu_b2_hw.c \ - $(BOOZ_PRIV)/booz2_max1168.c \ - $(BOOZ_PRIV_SIM)/booz2_max1168_sim.c - -sim.CFLAGS += -DUSE_I2C1 -# -DI2C1_SCLL=150 -DI2C1_SCLH=150 -DI2C1_VIC_SLOT=11 -DI2C1_BUF_LEN=16 +#sim.CFLAGS += -DACTUATORS=\"actuators_buss_twi_blmc_hw.h\" -DUSE_BUSS_TWI_BLMC +#sim.srcs += $(BOOZ_PRIV_SIM)/actuators_buss_twi_blmc_hw.c actuators.c +#sim.CFLAGS += -DUSE_I2C0 -DI2C0_SCLL=150 -DI2C0_SCLH=150 -DI2C0_VIC_SLOT=10 #sim.srcs += i2c.c $(SRC_ARCH)/i2c_hw.c -sim.CFLAGS += -DUSE_AMI601 -sim.srcs += AMI601.c + + + + + sim.CFLAGS += -DBOOZ2_ANALOG_BARO_LED=2 -DBOOZ2_ANALOG_BARO_PERIOD='SYS_TICS_OF_SEC((1./100.))' sim.srcs += $(BOOZ_PRIV)/booz2_analog_baro.c + +sim.CFLAGS += -DBOOZ2_ANALOG_BATTERY_PERIOD='SYS_TICS_OF_SEC((1./10.))' +sim.srcs += $(BOOZ_PRIV)/booz2_battery.c + sim.srcs += $(BOOZ_PRIV)/booz2_analog.c $(BOOZ_PRIV_SIM)/booz2_analog_hw.c + + + sim.srcs += $(BOOZ_PRIV)/booz2_gps.c sim.srcs += $(BOOZ_PRIV)/booz2_autopilot.c diff --git a/conf/flight_plans/booz_test_1.xml b/conf/flight_plans/booz_test_1.xml index 9282ba80d3..ed3946c846 100644 --- a/conf/flight_plans/booz_test_1.xml +++ b/conf/flight_plans/booz_test_1.xml @@ -2,12 +2,12 @@ - - - - - - + + + + + + diff --git a/conf/settings/settings_booz2.xml b/conf/settings/settings_booz2.xml index 23479a8829..6590b22e33 100644 --- a/conf/settings/settings_booz2.xml +++ b/conf/settings/settings_booz2.xml @@ -6,7 +6,7 @@ - +