|
From: | Joseph Muhlhausen |
Subject: | Re: [Paparazzi-devel] 'IMU_MAG_X_SENS' undeclared when using NPS |
Date: | Tue, 26 Jan 2016 16:40:29 -0500 |
Cheers, Felixthis should already be fixed in v5.6 and later...to conf/firmwares/subsystems/shared/imu_umarim.makefileHi Joseph,add
include $(CFG_SHARED)/imu_nps.makefileOn Sun, Jan 24, 2016 at 7:17 PM, Joseph Muhlhausen <address@hidden> wrote:Hi Felix,Here is my airframe http://pastebin.com/vrfpiRwHI will move to 5.8 in a couple of weeks and see if it fixes the errors.Thanks,JosephOn Sun, Jan 24, 2016 at 10:16 AM, Felix Ruess <address@hidden> wrote:Cheers, FelixI suggest to give it a shot...Updating your module to work with the latest stable release (v5.8) should not be much work (depending on what you used in your module).Also there were quite a few fixes for NPS since then (especially in v5.6).Though it looks like you don't have an IMU subsystem added for the NPS target.Hi Joseph,it's a bit hard to say where the error without your full airframe file.
See https://github.com/paparazzi/paparazzi/blob/master/CHANGELOG.mdOn Sun, Jan 24, 2016 at 4:03 PM, Joseph Muhlhausen <address@hidden> wrote:Thanks Felix,I'd like to avoid upgrading to 5.8 as I have written a module in 5.4 and I am a bit short on time at the moment. (unless it fixes NPS...)I have tried adding your code under<target name="nps" board="pc"><subsystem name="fdm" type="jsbsim"/><define name="IMU_MAG_X_SENS" value="1"/><define name="IMU_MAG_Y_SENS" value="1"/><define name="IMU_MAG_Z_SENS" value="1"/></target>And I get this error:home/cgs/paparazzi/var/aircrafts/ziitst/nps//home/cgs/paparazzi/sw/simulator/nps/nps_autopilot_fixedwing.o: In function `nps_autopilot_run_step':/home/cgs/paparazzi/sw/simulator/nps/nps_autopilot_fixedwing.c:110: undefined reference to `imu_feed_mag'/home/cgs/paparazzi/sw/simulator/nps/nps_autopilot_fixedwing.c:104: undefined reference to `imu_feed_gyro_accel'/home/cgs/paparazzi/var/aircrafts/ziitst/nps/subsystems/ahrs/ahrs_aligner.o: In function `pprz_msg_send_FILTER_ALIGNER':/home/cgs/paparazzi/var/include/messages.h:2593: undefined reference to `imu'/home/cgs/paparazzi/var/include/messages.h:2594: undefined reference to `imu'/home/cgs/paparazzi/var/include/messages.h:2595: undefined reference to `imu'/home/cgs/paparazzi/var/aircrafts/ziitst/nps/subsystems/ahrs/ahrs_aligner.o: In function `ahrs_aligner_run':/home/cgs/paparazzi/sw/airborne/subsystems/ahrs/ahrs_aligner.c:87: undefined reference to `imu'/home/cgs/paparazzi/sw/airborne/subsystems/ahrs/ahrs_aligner.c:86: undefined reference to `imu'/home/cgs/paparazzi/var/aircrafts/ziitst/nps/subsystems/ahrs/ahrs_aligner.o:/home/cgs/paparazzi/sw/airborne/subsystems/ahrs/ahrs_aligner.c:86: more undefined references to `imu' followcollect2: ld returned 1 exit statusmake[1]: *** [/home/cgs/paparazzi/var/aircrafts/ziitst/nps/simsitl] Error 1make[1]: Leaving directory `/home/cgs/paparazzi/sw/airborne'make: *** [nps.compile] Error 2make: Leaving directory `/home/cgs/paparazzi'On Sun, Jan 24, 2016 at 9:38 AM, Felix Ruess <address@hidden> wrote:Cheers, FelixAlso I would recommend to update to v5.8 ;-)to your airframe file (in order to satisfy the mag simulation).<define name="IMU_MAG_X_SENS" value="1"/>Hi Joseph,in that case you can just add
<define name="IMU_MAG_Y_SENS" value="1"/>
<define name="IMU_MAG_Z_SENS" value="1"/>On Sun, Jan 24, 2016 at 3:32 PM, Joseph Muhlhausen <address@hidden> wrote:_______________________________________________Hello all,I use version v5.4.2_stable-3-gc8d866b-dirty and my board is UmarimLite 2.I am trying to compile NPS and I have added the following to my airframe file:<target name="nps" board="pc"><subsystem name="fdm" type="jsbsim"/></target><section name="SIMULATOR" prefix="NPS_"><define name="JSBSIM_MODEL" value=""Malolo1""/><define name="JSBSIM_LAUNCHSPEED" value="20"/><define name="COMMANDS_NB" value="3"/><define name="ACTUATOR_NAMES" value="{"throttle-cmd-norm", "aileron-cmd-norm", "elevator-cmd-norm"}"/><define name="SENSORS_PARAMS" value=""nps_sensors_params_invariant.h""/><define name="JS_AXIS_MODE" value="4"/><define name="BYPASS_AHRS" value="TRUE"/></section>And I get this error:/home/cgs/paparazzi/sw/simulator/nps/nps_sensor_mag.c: In function 'nps_sensor_mag_init':/home/cgs/paparazzi/sw/simulator/nps/nps_sensor_mag.c:12:3: error: 'IMU_MAG_X_SENS' undeclared (first use in this function)/home/cgs/paparazzi/sw/simulator/nps/nps_sensor_mag.c:12:3: note: each undeclared identifier is reported only once for each function it appears in/home/cgs/paparazzi/sw/simulator/nps/nps_sensor_mag.c:12:3: error: 'IMU_MAG_Y_SENS' undeclared (first use in this function)/home/cgs/paparazzi/sw/simulator/nps/nps_sensor_mag.c:12:3: error: 'IMU_MAG_Z_SENS' undeclared (first use in this function)make[1]: *** [/home/cgs/paparazzi/var/aircrafts/ziitst/nps//home/cgs/paparazzi/sw/simulator/nps/nps_sensor_mag.o] Error 1make[1]: *** Waiting for unfinished jobs....make[1]: Leaving directory `/home/cgs/paparazzi/sw/airborne'make: *** [nps.compile] Error 2make: Leaving directory `/home/cgs/paparazzi'I think it is related to the fact that the Umarim IMU does not have a mag, but I'm not sure how to fix it.ThanksJoseph
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |