Difference between revisions of "GCS Configuration"

From PaparazziUAV
Jump to navigation Jump to search
 
Line 1: Line 1:
This page has not yet been transfered from the former site.
The layout of the different components (map, strips, ...) of the gcs is configurable through a ''style'' XML file located in <tt>conf/gcs/</tt>. The specification is done via a combination of rows and columns. The default layout is given in the <tt>horizontal.xml</tt> file:
Please see: http://www.recherche.enac.fr/paparazzi/doc/moin.cgi/UserManual
<tt><!DOCTYPE layout SYSTEM "layout.dtd">
<layout width="1024" height="768">
<rows>
  <widget size="500" name="map2d"/>
  <columns>
  <rows size="350">
    <widget size="120" name="strips"/>
    <widget name="alarms"/>
  </rows>
  <widget size="400" name="aircraft"/>
  <widget size="00" name="plugin"/>
  </columns>
</rows>
</layout></tt>
 
Default size ('''1024x768''') of the whole window is specified in the root of the tree. The window is then divided in two rows:
* the <tt>map2d</tt> with a requested height of '''500'''
* a set of columns containing
** a set of rows of width '''350''' divided into
**: the '''strips''' frame of height '''120'''
**: the '''alarms''' frame
** the notebook frame ('''aircraft''') of width '''400'''
** the video plugin frame
 
This second example (<tt>left_col.xml</tt>) sets the map and the notebook on the right and the other frames in a left column:
<tt><!DOCTYPE layout SYSTEM "layout.dtd">
<layout width="1024" height="768">
<columns>
  <rows size="360">
      <widget size="120" name="strips"/>
      <widget size="300" name="plugin"/>
      <widget name="alarms"/>
  </rows>
  <rows>
    <widget name="map2d"/>
    <widget name="aircraft"/>
  </rows>
</columns>
</layout></tt>
 
This layout file is chosen with the <tt>-layout</tt> option:
<tt>path_to_ground_segment/cockpit/gcs -layout left_col.xml</tt>

Revision as of 13:48, 13 December 2006

The layout of the different components (map, strips, ...) of the gcs is configurable through a style XML file located in conf/gcs/. The specification is done via a combination of rows and columns. The default layout is given in the horizontal.xml file:

<!DOCTYPE layout SYSTEM "layout.dtd">
<layout width="1024" height="768">
<rows>
 <widget size="500" name="map2d"/>
 <columns>
  <rows size="350">
   <widget size="120" name="strips"/>
   <widget name="alarms"/>
  </rows>
  <widget size="400" name="aircraft"/>
  <widget size="00" name="plugin"/>
 </columns>
</rows>
</layout>

Default size (1024x768) of the whole window is specified in the root of the tree. The window is then divided in two rows:

  • the map2d with a requested height of 500
  • a set of columns containing
    • a set of rows of width 350 divided into
      the strips frame of height 120
      the alarms frame
    • the notebook frame (aircraft) of width 400
    • the video plugin frame

This second example (left_col.xml) sets the map and the notebook on the right and the other frames in a left column:

<!DOCTYPE layout SYSTEM "layout.dtd">
<layout width="1024" height="768">
<columns>
  <rows size="360">
     <widget size="120" name="strips"/>
     <widget size="300" name="plugin"/>
     <widget name="alarms"/>
  </rows>
  <rows>
    <widget name="map2d"/>
    <widget name="aircraft"/>
  </rows>
</columns>
</layout>

This layout file is chosen with the -layout option:

path_to_ground_segment/cockpit/gcs -layout left_col.xml