strange error in one of my modules

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

strange error in one of my modules

Chris Efstathiou
Hi.

If anyone knows what causes a module to fail with a message like the one
below let me know.

Any help welcomed because my head hurts....

ERROR MESSAGES:

D
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/firmwares/fixedwing/main_ap.o:
In function `modules_default_init':
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/generated/modules.h:94:
undefined reference to `parachute_init'
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/firmwares/fixedwing/main_ap.o:
In function `modules_default_periodic_task':
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/generated/modules.h:152:
undefined reference to `parachute_periodic'
collect2: error: ld returned 1 exit status
/home/hendrix/paparazzi/conf/Makefile.stm32:239: recipe for target
'/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf'
failed
make[1]: ***
[/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf]
Error 1
make[1]: Leaving directory '/home/hendrix/paparazzi/sw/airborne'
Makefile.ac:211: recipe for target 'ap.compile' failed
make: *** [ap.compile] Error 2
make: Leaving directory '/home/hendrix/paparazzi'

FAILED 'make -C /home/hendrix/paparazzi -f Makefile.ac
AIRCRAFT=Easystar_matek_f405_wing_simple ap.compile' with code 2

All the functions are defined and i can't find anything wrong with the
xml file

MODULE XML FILE:

<!DOCTYPE module SYSTEM "module.dtd">

<module name="my_parachute" dir="my_parachute">
   <doc>
     <description>Parachute</description>
     <configure name="PARACHUTE_DESCENT_RATE" value="3.0"
description="calculated descent rate in meters/second"/>
     <configure name="PARACHUTE_WIND_CORRECTION" value="1.0"
description="to estimate the landing spot better"/>
     <configure name="PARACHUTE_LINE_LENGTH" value="3.0"
description="the parachute to plane distance in meters."/>
   </doc>
<settings>
   <dl_settings>
     <dl_settings NAME="Parachute">
       <dl_setting MAX="1" MIN="0" STEP="1" VAR="deploy_parachute_var"
shortname="deploy parachute">
<!--       <strip_button name="parachute" icon="on.png" value="1"
group="parachute" />  -->
       </dl_setting>
     </dl_settings>
   </dl_settings>
</settings>
   <header>
     <file name="parachute_and_wind.h"/>
   </header>
   <init fun="parachute_init()"/>
   <periodic fun="parachute_periodic()" freq="4"/>
   <makefile>
     <define name="USE_PARACHUTE" value="1"/>
     <define name="WIND_INFO"/>
     <define name="WIND_INFO_RET"/>
     <define name="PARACHUTE_DESCENT_RATE"        value="3.0" />
     <define name="PARACHUTE_WIND_CORRECTION"    value="0.5" />
     <define name="PARACHUTE_LINE_LENGTH"        value="3.0" />
     <file name="parachute_and_wind.c"/>
   </makefile>
</module>


_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: strange error in one of my modules

Gautier Hattenberger-3
Hello,

It seems that the init and periodic functions are defined in
parachute_and_wind.h, but the implementation is missing in
parachute_and_wind.c (or the function names are different, or the file
itself is not compiled -> do you see it in the list of files compiled ?).

Gautier

Le 12/10/2020 à 13:28, Chris a écrit :

> Hi.
>
> If anyone knows what causes a module to fail with a message like the
> one below let me know.
>
> Any help welcomed because my head hurts....
>
> ERROR MESSAGES:
>
> D
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/firmwares/fixedwing/main_ap.o:
> In function `modules_default_init':
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/generated/modules.h:94:
> undefined reference to `parachute_init'
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/firmwares/fixedwing/main_ap.o:
> In function `modules_default_periodic_task':
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/generated/modules.h:152:
> undefined reference to `parachute_periodic'
> collect2: error: ld returned 1 exit status
> /home/hendrix/paparazzi/conf/Makefile.stm32:239: recipe for target
> '/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf'
> failed
> make[1]: ***
> [/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf]
> Error 1
> make[1]: Leaving directory '/home/hendrix/paparazzi/sw/airborne'
> Makefile.ac:211: recipe for target 'ap.compile' failed
> make: *** [ap.compile] Error 2
> make: Leaving directory '/home/hendrix/paparazzi'
>
> FAILED 'make -C /home/hendrix/paparazzi -f Makefile.ac
> AIRCRAFT=Easystar_matek_f405_wing_simple ap.compile' with code 2
>
> All the functions are defined and i can't find anything wrong with the
> xml file
>
> MODULE XML FILE:
>
> <!DOCTYPE module SYSTEM "module.dtd">
>
> <module name="my_parachute" dir="my_parachute">
>   <doc>
>     <description>Parachute</description>
>     <configure name="PARACHUTE_DESCENT_RATE" value="3.0"
> description="calculated descent rate in meters/second"/>
>     <configure name="PARACHUTE_WIND_CORRECTION" value="1.0"
> description="to estimate the landing spot better"/>
>     <configure name="PARACHUTE_LINE_LENGTH" value="3.0"
> description="the parachute to plane distance in meters."/>
>   </doc>
> <settings>
>   <dl_settings>
>     <dl_settings NAME="Parachute">
>       <dl_setting MAX="1" MIN="0" STEP="1" VAR="deploy_parachute_var"
> shortname="deploy parachute">
> <!--       <strip_button name="parachute" icon="on.png" value="1"
> group="parachute" />  -->
>       </dl_setting>
>     </dl_settings>
>   </dl_settings>
> </settings>
>   <header>
>     <file name="parachute_and_wind.h"/>
>   </header>
>   <init fun="parachute_init()"/>
>   <periodic fun="parachute_periodic()" freq="4"/>
>   <makefile>
>     <define name="USE_PARACHUTE" value="1"/>
>     <define name="WIND_INFO"/>
>     <define name="WIND_INFO_RET"/>
>     <define name="PARACHUTE_DESCENT_RATE"        value="3.0" />
>     <define name="PARACHUTE_WIND_CORRECTION"    value="0.5" />
>     <define name="PARACHUTE_LINE_LENGTH"        value="3.0" />
>     <file name="parachute_and_wind.c"/>
>   </makefile>
> </module>
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: strange error in one of my modules

Chris Efstathiou
Hi.
The compiler succeeds if i use my flight plans but fail if i use the basic.xml or any other paparazzi supplied flight plan, that is very strange as my flight plan is not any different from the ones supplied by default.
Also i doesn't matter if the flight plan uses the module or not at all when i use my flight plans, the code compiles fine.
If i remove the offending module everything is fine, in any case i didn't include the parachute module in the pull request anyway.
All the functions that are not found are included in the module's xml.file,
I will search for the problem my self also.
Here is the output from the Paparazzi center

RUN 'make -C /home/hendrix/paparazzi -f Makefile.ac AIRCRAFT=Easystar_matek_f405_wing ap.compile '
make: Entering directory '/home/hendrix/paparazzi'
-----------------------------------------------------------------------
Paparazzi version v5.17_devel-79-gcd9cb69-dirty
-----------------------------------------------------------------------
#######################################
# BUILD AIRCRAFT=Easystar_matek_f405_wing, TARGET ap
#######################################
Aircraft generator: 'Easystar_matek_f405_wing' for target 'ap'
Parsing airframe '/home/hendrix/paparazzi/conf/airframes/matek_f405_wing/Easystar_matek_f405_wing.xml', sorting by target, extracting and parsing autopilot... done.
Parsing flight plan '/home/hendrix/paparazzi/conf/flight_plans/basic.xml', extracting modules... done
Parsing radio '/home/hendrix/paparazzi/conf/radios/openTX_radio_8ch.xml'... done
Parsing telemetry '/home/hendrix/paparazzi/conf/telemetry/telemetry_openlrsng_19200.xml'... done
Parsing settings... done
Loading modules:
 - my_parachute (my_parachute) [/home/hendrix/paparazzi/conf/modules/my_parachute.xml]
 - max7456 (osd_max7456_new) [/home/hendrix/paparazzi/conf/modules/osd_max7456_new.xml]
 - baro_bmp280 (sensors) [/home/hendrix/paparazzi/conf/modules/baro_bmp280_i2c.xml]
 - gps_ubx_ucenter (gps) [/home/hendrix/paparazzi/conf/modules/gps_ubx_ucenter.xml]
 - nav_line (nav) [/home/hendrix/paparazzi/conf/modules/nav_line.xml]
 - spi_master (mcu_periph) [/home/hendrix/paparazzi/conf/modules/spi_master.xml]
 - ins_alt_float (ins) [/home/hendrix/paparazzi/conf/modules/ins_alt_float.xml]
 - ahrs_float_dcm (ahrs) [/home/hendrix/paparazzi/conf/modules/ahrs_float_dcm.xml]
 - imu_common (imu) [/home/hendrix/paparazzi/conf/modules/imu_common.xml]
 - imu_mpu6000 (imu) [/home/hendrix/paparazzi/conf/modules/imu_mpu6000.xml]
 - nav_basic_fw (nav) [/home/hendrix/paparazzi/conf/modules/nav_basic_fw.xml]
 - navigation (nav) [/home/hendrix/paparazzi/conf/modules/navigation.xml]
 - radio_control_ppm (radio_control) [/home/hendrix/paparazzi/conf/modules/radio_control_ppm.xml]
 - guidance_basic (guidance) [/home/hendrix/paparazzi/conf/modules/guidance_basic_fw.xml]
 - stabilization_attitude (stabilization) [/home/hendrix/paparazzi/conf/modules/stabilization_attitude_fw.xml]
 - control (control) [/home/hendrix/paparazzi/conf/modules/control.xml]
 - gps (gps) [/home/hendrix/paparazzi/conf/modules/gps.xml]
 - gps_ublox (gps) [/home/hendrix/paparazzi/conf/modules/gps_ublox.xml]
 - telemetry_transparent (datalink) [/home/hendrix/paparazzi/conf/modules/telemetry_transparent.xml]
Dumping flight plan XML and header...(updated) done
Dumping airframe header...(updated) done
Dumping autopilot header...(skip) done
Dumping radio header...(updated) done
Dumping telemetry header...(updated) done
Dumping modules header...(updated) done
Dumping settings XML and header...(updated) done
NOTICE: low altitude (185<185+25) in <waypoint Y="57.0" X="28.8" NAME="TD" ALT="185.0"/>
make TARGET=ap -f Makefile.ac all_ac_h
make[1]: Entering directory '/home/hendrix/paparazzi'
Using "arch/stm32/matek_f405_wing.ld" as ldscript for target "ap".
make[1]: Leaving directory '/home/hendrix/paparazzi'
cd sw/airborne; make -j1 TARGET=ap all
make[1]: Entering directory '/home/hendrix/paparazzi/sw/airborne'
Using "arch/stm32/matek_f405_wing.ld" as ldscript for target "ap".

GCC version: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q3-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]

CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/mcu.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/mcu_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/mcu_periph/sys_time.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/mcu_periph/sys_time_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/./inter_mcu.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_geodetic_int.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_geodetic_float.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_geodetic_double.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_trig_int.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_orientation_conversion.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_algebra_int.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_algebra_float.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_algebra_double.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/math/pprz_stat.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/mcu_periph/i2c.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/mcu_periph/softi2c.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/mcu_periph/i2c_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/main_fbw.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/electrical.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/commands.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/actuators.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/main_ap.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/autopilot.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/autopilot_firmware.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/autopilot_static.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/state.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/settings.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/subsystems/settings_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/mcu_periph/gpio_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/main.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/led_hw.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/mcu_periph/uart.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/mcu_periph/uart_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/mcu_periph/adc_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/subsystems/actuators/actuators_pwm_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/subsystems/actuators/actuators_shared_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/modules/my_parachute/parachute_and_wind.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/modules/osd_max7456_new/max7456.o
modules/osd_max7456_new/max7456.c: In function 'draw_osd_flying_screen':
modules/osd_max7456_new/max7456.c:522:9: note: #pragma message: OSD USES PAL
 #pragma message "OSD USES PAL"
         ^~~~~~~
modules/osd_max7456_new/max7456.c:568:9: note: #pragma message: OSD USES THE GPS HEADING
 #pragma message "OSD USES THE GPS HEADING"
         ^~~~~~~
modules/osd_max7456_new/max7456.c:598:9: note: #pragma message: ALTITUDE IS COMING FROM GPS
 #pragma message "ALTITUDE IS COMING FROM GPS"
         ^~~~~~~
modules/osd_max7456_new/max7456.c: In function 'ascii_to_osd_c':
modules/osd_max7456_new/max7456.c:947:2: warning: #warning OSD USES THE CUSTOM MATEK TYPE OSD CHIP [-Wcpp]
 #warning OSD USES THE CUSTOM MATEK TYPE OSD CHIP
  ^~~~~~~
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/mcu_periph/spi.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/mcu_periph/spi_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/peripherals/bmp280_i2c.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/modules/sensors/baro_bmp280_i2c.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/modules/gps/gps_ubx_ucenter.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/modules/nav/nav_line.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/ins/ins_alt_float.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/ins.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/ahrs/ahrs_float_dcm_wrapper.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/ahrs/ahrs_float_dcm.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/ahrs/ahrs_aligner.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/ahrs.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/imu.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/imu/imu_mpu6000.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/peripherals/mpu60x0_spi.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/peripherals/mpu60x0.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/navigation/nav_survey_rectangle.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/navigation/common_flight_plan.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/nav.o
firmwares/fixedwing/nav.c:202:13: warning: 'nav_ground_speed_loop' defined but not used [-Wunused-function]
 static void nav_ground_speed_loop(void)
             ^~~~~~~~~~~~~~~~~~~~~
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/arch/stm32/subsystems/radio_control/ppm_arch.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/radio_control/ppm.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/radio_control.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/guidance/guidance_h.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/guidance/guidance_v.o
firmwares/fixedwing/guidance/guidance_v.c: In function 'v_ctl_climb_loop':
firmwares/fixedwing/guidance/guidance_v.c:349:9: note: #pragma message: AUTO PITCH Enabled!
 #pragma message "AUTO PITCH Enabled!"
         ^~~~~~~
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/stabilization/stabilization_attitude.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/gps.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/gps/gps_ubx.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/pprzlink/src/pprz_transport.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/datalink/telemetry.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/datalink/datalink.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/datalink/downlink.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/modules/datalink/pprz_dl.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/ap_downlink.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/fixedwing_datalink.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/fbw_downlink.o
CXX /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/c++.o
CC /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/pprz_syscalls.o
LD /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/ap.elf
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/autopilot.o: In function `send_dl_value':
/home/hendrix/paparazzi/sw/airborne/autopilot.c:73: undefined reference to `deploy_parachute_var'
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/main_ap.o: In function `modules_default_init':
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/generated/modules.h:93: undefined reference to `parachute_init'
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/firmwares/fixedwing/main_ap.o: In function `modules_default_periodic_task':
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/generated/modules.h:147: undefined reference to `parachute_periodic'
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/datalink/datalink.o: In function `dl_parse_msg':
/home/hendrix/paparazzi/sw/airborne/subsystems/datalink/datalink.c:95: undefined reference to `deploy_parachute_var'
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/subsystems/datalink/datalink.o: In function `settings_get_value':
/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/generated/settings.h:343: undefined reference to `deploy_parachute_var'
collect2: error: ld returned 1 exit status
/home/hendrix/paparazzi/conf/Makefile.stm32:239: recipe for target '/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/ap.elf' failed
make[1]: *** [/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing/ap/ap.elf] Error 1
make[1]: Leaving directory '/home/hendrix/paparazzi/sw/airborne'
Makefile.ac:211: recipe for target 'ap.compile' failed
make: *** [ap.compile] Error 2
make: Leaving directory '/home/hendrix/paparazzi'

FAILED 'make -C /home/hendrix/paparazzi -f Makefile.ac AIRCRAFT=Easystar_matek_f405_wing ap.compile' with code 2

On Mon, Oct 12, 2020 at 2:58 PM Gautier Hattenberger <[hidden email]> wrote:
Hello,

It seems that the init and periodic functions are defined in
parachute_and_wind.h, but the implementation is missing in
parachute_and_wind.c (or the function names are different, or the file
itself is not compiled -> do you see it in the list of files compiled ?).

Gautier

Le 12/10/2020 à 13:28, Chris a écrit :
> Hi.
>
> If anyone knows what causes a module to fail with a message like the
> one below let me know.
>
> Any help welcomed because my head hurts....
>
> ERROR MESSAGES:
>
> D
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/firmwares/fixedwing/main_ap.o:
> In function `modules_default_init':
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/generated/modules.h:94:
> undefined reference to `parachute_init'
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/firmwares/fixedwing/main_ap.o:
> In function `modules_default_periodic_task':
> /home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/generated/modules.h:152:
> undefined reference to `parachute_periodic'
> collect2: error: ld returned 1 exit status
> /home/hendrix/paparazzi/conf/Makefile.stm32:239: recipe for target
> '/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf'
> failed
> make[1]: ***
> [/home/hendrix/paparazzi/var/aircrafts/Easystar_matek_f405_wing_simple/ap/ap.elf]
> Error 1
> make[1]: Leaving directory '/home/hendrix/paparazzi/sw/airborne'
> Makefile.ac:211: recipe for target 'ap.compile' failed
> make: *** [ap.compile] Error 2
> make: Leaving directory '/home/hendrix/paparazzi'
>
> FAILED 'make -C /home/hendrix/paparazzi -f Makefile.ac
> AIRCRAFT=Easystar_matek_f405_wing_simple ap.compile' with code 2
>
> All the functions are defined and i can't find anything wrong with the
> xml file
>
> MODULE XML FILE:
>
> <!DOCTYPE module SYSTEM "module.dtd">
>
> <module name="my_parachute" dir="my_parachute">
>   <doc>
>     <description>Parachute</description>
>     <configure name="PARACHUTE_DESCENT_RATE" value="3.0"
> description="calculated descent rate in meters/second"/>
>     <configure name="PARACHUTE_WIND_CORRECTION" value="1.0"
> description="to estimate the landing spot better"/>
>     <configure name="PARACHUTE_LINE_LENGTH" value="3.0"
> description="the parachute to plane distance in meters."/>
>   </doc>
> <settings>
>   <dl_settings>
>     <dl_settings NAME="Parachute">
>       <dl_setting MAX="1" MIN="0" STEP="1" VAR="deploy_parachute_var"
> shortname="deploy parachute">
> <!--       <strip_button name="parachute" icon="on.png" value="1"
> group="parachute" />  -->
>       </dl_setting>
>     </dl_settings>
>   </dl_settings>
> </settings>
>   <header>
>     <file name="parachute_and_wind.h"/>
>   </header>
>   <init fun="parachute_init()"/>
>   <periodic fun="parachute_periodic()" freq="4"/>
>   <makefile>
>     <define name="USE_PARACHUTE" value="1"/>
>     <define name="WIND_INFO"/>
>     <define name="WIND_INFO_RET"/>
>     <define name="PARACHUTE_DESCENT_RATE"        value="3.0" />
>     <define name="PARACHUTE_WIND_CORRECTION"    value="0.5" />
>     <define name="PARACHUTE_LINE_LENGTH"        value="3.0" />
>     <file name="parachute_and_wind.c"/>
>   </makefile>
> </module>
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel