[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] 'IMU_MAG_X_SENS' undeclared when using NPS

From: Joseph Muhlhausen
Subject: [Paparazzi-devel] 'IMU_MAG_X_SENS' undeclared when using NPS
Date: Sun, 24 Jan 2016 09:32:29 -0500

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"/>

  <section name="SIMULATOR" prefix="NPS_">
    <define name="JSBSIM_MODEL" value="&quot;Malolo1&quot;"/>
    <define name="JSBSIM_LAUNCHSPEED" value="20"/>
    <define name="COMMANDS_NB" value="3"/>
    <define name="ACTUATOR_NAMES" value="{&quot;throttle-cmd-norm&quot;, &quot;aileron-cmd-norm&quot;, &quot;elevator-cmd-norm&quot;}"/>
    <define name="SENSORS_PARAMS" value="&quot;nps_sensors_params_invariant.h&quot;"/>
    <define name="JS_AXIS_MODE" value="4"/>
    <define name="BYPASS_AHRS" value="TRUE"/>

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 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/cgs/paparazzi/sw/airborne'
make: *** [nps.compile] Error 2
make: 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]