Hi.
I am trying to compile a fixed delta wing with the cc3d revo board but i get some errors that look strange so any help is welcomed.
Let's start...
If i don't include the baro_ms5611_i2c module i get the following errors:
/home/hendrix/paparazzi/sw/airborne/firmwares/fixedwing/main_ap.c:214: undefined reference to `baro_init'
/home/hendrix/paparazzi/var/aircrafts/xeno/ap/firmwares/fixedwing/main_ap.o: In function `handle_periodic_tasks_ap':
/home/hendrix/paparazzi/sw/airborne/firmwares/fixedwing/main_ap.c:287: undefined reference to `baro_periodic'
/home/hendrix/paparazzi/var/aircrafts/xeno/ap/firmwares/fixedwing/main_ap.o: In function `event_task_ap':
/home/hendrix/paparazzi/sw/airborne/firmwares/fixedwing/main_ap.c:714: undefined reference to `baro_event'
collect2: error: ld returned 1 exit status
make[1]: *** [/home/hendrix/paparazzi/var/aircrafts/xeno/ap/ap.elf] Error 1
make[1]: Leaving directory `/home/hendrix/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/hendrix/paparazzi'
Now if i include the baro module like that:
<load name="baro_ms5611_i2c.xml">
<define name="MS5611_I2C_DEV" value="i2c1" />
<define name="MS5611_SLAVE_ADDR=0xEE"/>
<define name="MS5611_SEND_BARO_ALTITUDE"/>
</load>
I get the following errors (redefinitions and i2c0 error):
arch/stm32/mcu_periph/i2c_arch.c:915:2: error: #error "The STM32 doesn't have I2C0, use I2C1 or I2C2"
#error "The STM32 doesn't have I2C0, use I2C1 or I2C2"
^
<command-line>:0:0: warning: "MS5611_I2C_DEV" redefined
<command-line>:0:0: note: this is the location of the previous definition
make[1]: *** [/home/hendrix/paparazzi/var/aircrafts/xeno/ap/arch/stm32/mcu_periph/i2c_arch.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/hendrix/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/hendrix/paparazzi'
Finally if i manually edit the baro_ms5611_i2c.xml file and instead of the default i2c0
i use i2c1 i get the following errors (undefined references):
LD /home/hendrix/paparazzi/var/aircrafts/xeno/ap/ap.elf
/home/hendrix/paparazzi/var/aircrafts/xeno/ap/firmwares/fixedwing/main_ap.o: In function `init_ap':
/home/hendrix/paparazzi/sw/airborne/firmwares/fixedwing/main_ap.c:214: undefined reference to `baro_init'
/home/hendrix/paparazzi/var/aircrafts/xeno/ap/firmwares/fixedwing/main_ap.o: In function `handle_periodic_tasks_ap':
/home/hendrix/paparazzi/sw/airborne/firmwares/fixedwing/main_ap.c:287: undefined reference to `baro_periodic'
/home/hendrix/paparazzi/var/aircrafts/xeno/ap/firmwares/fixedwing/main_ap.o: In function `event_task_ap':
/home/hendrix/paparazzi/sw/airborne/firmwares/fixedwing/main_ap.c:714: undefined reference to `baro_event'
collect2: error: ld returned 1 exit status
make[1]: *** [/home/hendrix/paparazzi/var/aircrafts/xeno/ap/ap.elf] Error 1
make[1]: Leaving directory `/home/hendrix/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/hendrix/paparazzi'