paparazzi-devel
[Top][All Lists]
Advanced

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

[Paparazzi-devel] Assertion Error with adc_generic


From: Wolfgang Schaeper
Subject: [Paparazzi-devel] Assertion Error with adc_generic
Date: Thu, 23 Dec 2010 15:48:43 +0100

Hi,
I am still struggling with the new adc_generic. An assertion error is
reported only when I uncomment the adc_generic module in my airframe.xml.
The firmware and modules section of my airframe.xml is:
 
<firmware name="fixedwing">
    <target name="sim"                  board="pc"/>
    <target name="ap"                   board="tiny_2.11"/>
    <define name="AGR_CLIMB" />
    <define name="LOITER_TRIM" />
    <define name="ALT_KALMAN" />
    <subsystem name="radio_control"     type="ppm"/>
    <!-- Communication -->
    <subsystem name="telemetry"         type="transparent">
      <param name="MODEM_BAUD"          value="B9600"/>
    </subsystem>
    <!-- Actuators are automatically chosen according to board -->
    <subsystem name="control"/>
    <!-- Sensors -->
    <subsystem name="gyro"              type="roll"/>
    <subsystem name="attitude"          type="infrared"/>
    <subsystem name="gps"               type="ublox_lea5h"/>
    <subsystem name="navigation"        type="extra"/> <!--this includes
OSAMNav, nav, discsurvey and nav_cube as well-->
  </firmware>
 
  <firmware name="setup">
    <target name="tunnel"           board="tiny_2.11" />
    <target name="setup_actuators"  board="tiny_2.11" />
  </firmware>
 
  <modules main_freq="4">
    <load name="adc_generic.xml">
      <flag name="ADC_CHANNEL_GENERIC1"    value="ADC_3"/>
      <flag name="ADC_CHANNEL_GENERIC2"    value="ADC_4"/>
      <flag name="USE_ADC_3"/>
      <flag name="USE_ADC_4"/>
    </load>
  </modules>
 
  <modules main_freq="10">
     <load name="servo_switch.xml">
      <param name="SERVO_SWITCH_ON_VALUE"  value="2000"/>
      <param name="SERVO_SWITCH_OFF_VALUE" value="1500"/>
      <param name="SERVO_SWITCH_SERVO"     value="SERVO_SWITCH"/>
    </load>
  </modules>
 
Compilation and flashing is okay. The GCS comes up and seems to work
normally with both, the current version of the telemetry/default.xml as well
as with the old telemetry/default.xml from the X-Mas 2008 CD-ROM.
The message tool is working and displaying all values. Only the ADC_GENERIC
values are both 0 although a sensor is connected to ADC3.
The Paparazzi center repetitively displays this error message:
 
################################
Starting software at 0x00004000
make[1]: Leaving directory `/home/wolfgang/paparazzi/sw/airborne'
make: Leaving directory `/homRun
'/home/wolfgang/paparazzi/sw/ground_segment/tmtc/link  -d /dev/ttyUSB0'
Run '/home/wolfgang/paparazzi/sw/ground_segment/tmtc/server '
Run '/home/wolfgang/paparazzi/sw/ground_segment/cockpit/gcs '
File "pprz.ml", line 385, characters 4-10: Assertion failed
File "pprz.ml", line 385, characters 4-10: Assertion failed
File "pprz.ml", line 385, characters 4-10: Assertion failed
Unix.Unix_error(2, "read", "")
Unix.Unix_error(2, "read", "")
File "pprz.ml", line 385, characters 4-10: Assertion failed
etc...
 
I have no idea how to fix the bug. Therefore your help is appreciated.
Cheers, 
Wolfgang





reply via email to

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