[Top][All Lists]

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

Re: [Paparazzi-devel] Assertion Error with adc_generic

From: Felix Ruess
Subject: Re: [Paparazzi-devel] Assertion Error with adc_generic
Date: Fri, 24 Dec 2010 00:22:28 +0100

Hi Wolfgang,

can you please update and test if you still have this problem. I might have found and fixed the problem, but can't tell due to lack of hardware to test.

You have to replace <param name="MODEM_BAUD"          value="B9600"/>
with <configure name="MODEM_BAUD"          value="B9600"/>
and the flag and param keywords for both modules with define as well.

Cheers, Felix

On Thu, Dec 23, 2010 at 3:48 PM, Wolfgang Schaeper <address@hidden> wrote:
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"/>
   <!-- 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 name="setup">
   <target name="tunnel"           board="tiny_2.11" />
   <target name="setup_actuators"  board="tiny_2.11" />

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

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

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 "", line 385, characters 4-10: Assertion failed
File "", line 385, characters 4-10: Assertion failed
File "", line 385, characters 4-10: Assertion failed
Unix.Unix_error(2, "read", "")
Unix.Unix_error(2, "read", "")
File "", line 385, characters 4-10: Assertion failed

I have no idea how to fix the bug. Therefore your help is appreciated.

Paparazzi-devel mailing list

reply via email to

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