[Top][All Lists]

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

Re: [Paparazzi-devel] strange problem when running the GCS programs

From: Chris
Subject: Re: [Paparazzi-devel] strange problem when running the GCS programs
Date: Thu, 23 Jun 2016 07:39:43 +0300
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.8.0

Found the cause of the error.
When i include the povhat in the joystick file i get the error, when i remove it it goes away.
Here is the joystick file

  <axis index="0" name="aileron"    limit="1.00" exponent="0.6" trim="0" />   
  <axis index="1" name="elevator"    limit="1.00" exponent="0.6" trim="0" />
  <axis index="2" name="rudder"        limit="1.00" exponent="0.6" trim="0" />
  <axis index="3" name="throttle"    limit="1.00" exponent="0.0" trim="0" />

  <button index="0" name="lower_hut_left"/>
  <button index="1" name="lower_hut_down"/>
  <button index="2" name="lower_hut_right"/>
  <button index="3" name="lower_hut_up"/> 
  <button index="4" name="stick_right_button"/>
  <button index="5" name="stick_center_button"/>
  <button index="6" name="stick_left_button"/>
  <button index="7" name="stick_fire_button"/>
  <button index="8" name="select"/>
  <button index="9" name="start"/>
  <button index="10" name="L3"/> 
  <button index="11" name="R3"/>
  <button index="12" name="HOME"/>

  <hat index="0" name="POVhat"/>


<messages period="0.030">

  <message class="datalink" name="JOYSTICK_RAW" send_always="true" >
    <field name="roll" value="aileron"/>
    <field name="pitch" value="elevator"/>
    <field name="throttle" value="rudder"/> 

  <message class="ground" name="DL_SETTING" >
   <field name="index" value="IndexOfSetting(cam_mode)"/>
   <field name="value" value="5"/>

  <message class="ground" name="DL_SETTING" >
   <field name="index" value="IndexOfSetting(cam_mode)"/>
   <field name="value" value="6"/>

  <message class="ground" name="DL_SETTING" >
   <field name="index" value="IndexOfSetting(cam_lock)"/>
   <field name="value" value="0"/>
  <message class="ground" name="DL_SETTING" >
   <field name="index" value="IndexOfSetting(cam_lock)"/>
   <field name="value" value="1"/>

  <message class="ground" name="JUMP_TO_BLOCK" >
    <field name="block_id" value="IndexOfBlock('GO_TO_CAM')"/>

  <message class="ground" name="JUMP_TO_BLOCK" >
    <field name="block_id" value="IndexOfBlock('CIRCLE_HERE')"/>

  <message class="ground" name="JUMP_TO_BLOCK" >
    <field name="block_id" value="IndexOfBlock('RETURN_HOME')"/>
  <message class="ground" name="DL_SETTING" >
   <field name="index" value="IndexOfSetting(deploy_parachute_var)"/>
   <field name="value" value="1"/>


On 06/22/2016 03:59 PM, hendrixgr . wrote:
I couldn't replicate it using individual console commands but when i get this error i get no telemetry, the link is up but no data
are coming through.
I suspect that it has to do with an update to Ubuntu 12.04 LTS about a month ago.

On Tue, Jun 21, 2016 at 9:14 PM, hendrixgr . <address@hidden> wrote:
I will do it tomorrow first thing and i will reply.

On Tue, Jun 21, 2016 at 4:50 PM, Felix Ruess <address@hidden> wrote:
Hi Chris,

can you start the programs separately to figure out from which one the exception is coming?

Cheers, Felix

On Tue, Jun 21, 2016 at 1:06 PM, Chris <address@hidden> wrote:
I get a strange error (the one you see later) which affects the telemetry among other things but only the first time i run the GCS programs, if i stop/remove all running processes then the next time everything runs fine.
I am running Ubuntu 12.04 LTS and the very latest master although i have been seeing this error
regularly for the whole past month

Here is the control_panel.xml part

   <program name="GCS_C177" command="sw/ground_segment/cockpit/gcs -speech -layout CEF/C177_layout.xml -mplayer 'tv:// -tv driver=v4l2:width=640:height=480:norm=PAL:input=1:device=/dev/video0'">
      <arg flag="-b" variable="ivy_bus"/>

   <session name="C177 cam joystick @115200">
      <program name="Joystick">
         <arg flag="CEF/Saitek_Aviator_camera.xml"/>
         <arg flag="-ac" constant="@AIRCRAFT"/>
      <program name="Data Link">
         <arg flag="-d" constant="/dev/ttyUSB0"/>
         <arg flag ="-transport" constant="pprz"/>
         <arg flag="-s" constant="115200"/>
      <program name="Server"/>
      <program name="GCS_C177"/>

Here is the output containing the error:

RUN '/home/hendrix/paparazzi/sw/ground_segment/joystick/input2ivy CEF/Saitek_Aviator_camera.xml  -ac Cessna_177'
RUN '/home/hendrix/paparazzi/sw/ground_segment/tmtc/link  -d /dev/ttyUSB0 -transport pprz -s 115200'
RUN '/home/hendrix/paparazzi/sw/ground_segment/tmtc/server '
RUN '/home/hendrix/paparazzi/sw/ground_segment/cockpit/gcs -speech -layout CEF/C177_layout.xml -mplayer 'tv:// -tv driver=v4l2:width=640:height=480:norm=PAL:input=1:device=/dev/video0' '
Fatal error: exception Not_found
Broadcasting on network, port 2010

The same happens to all my aircrafts where i just change the aircraft name and probably the baud rate.

Paparazzi-devel mailing list

Paparazzi-devel mailing list

reply via email to

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