Difference between revisions of "GCS Configuration"

From PaparazziUAV
Jump to navigation Jump to search
Line 7: Line 7:


Here are the diffrent Configuration Options for launching the GCS. They are a bit crude since they are simply pasted here from the code.<br>
Here are the diffrent Configuration Options for launching the GCS. They are a bit crude since they are simply pasted here from the code.<br>
"-b", Arg.String (fun x -> ivy_bus := x), "Bus\tDefault is 127.255.255.25:2010";<br>
  "-auto_ortho", Arg.Set auto_ortho, "IGN tiles path";<br>
"-maximize", Arg.Set maximize, "Maximize window";<br>
  "-b", Arg.String (fun x -> ivy_bus := x), "Bus\tDefault is 127.255.255.25:2010";<br>
"-fullscreen", Arg.Set fullscreen, "Fullscreen window";<br>
  "-center", Arg.Set_string center, "Initial map center (e.g. 'WGS84 43.605 1.443')";<br>
"-ref", Arg.Set_string geo_ref, "Geographic ref (default '')";<br>
  "-center_ac", Arg.Set auto_center_new_ac, "Centers the map on any new A/C";<br>
"-zoom", Arg.Set_float zoom, "Initial zoom";<br>
  "-edit", Arg.Unit (fun () -> edit := true; layout_file := "editor.xml"), "Flight plan editor";<br>
"-center", Arg.Set_string center, "Initial map center";<br>
  "-fullscreen", Arg.Set fullscreen, "Fullscreen window";<br>
"-center_ac", Arg.Set auto_center_new_ac, "Centers the map on any new A/C";<br>
  "-google_fill", Arg.Set GM.auto, "Google maps auto fill";<br>
"-track_size", Arg.Set_int Live.track_size, (sprintf "Default track length (%d)" !Live.track_size);<br>
  "-ign", Arg.String (fun s -> ign:=true; IGN.data_path := s), "IGN tiles path";<br>
"-plugin", Arg.Set_string plugin_window, "External X application (launched with the id of the plugin window as argument)";<br>
  "-lambertIIe", Arg.Unit (fun () -> projection:=G.LambertIIe),"Switch to LambertIIe projection";<br>
"-mplayer", Arg.Set_string mplayer, "Launch mplayer with the given argument as X plugin";<br>
  "-layout", Arg.Set_string layout_file, (sprintf "<XML layout specification> GUI layout. Default: %s" !layout_file);<br>
"-utm", Arg.Unit (fun () -> projection:=G.UTM),"Switch to UTM local projection";<br>
  "-m", Arg.String (fun x -> map_files := x :: !map_files), "Map XML description file";<br>
"-mercator", Arg.Unit (fun () -> projection:=G.Mercator),"Switch to (Google Maps) Mercator projection, default";<br>
  "-maximize", Arg.Set maximize, "Maximize window";<br>
"-no_google_http", Arg.Set Gm.no_http, "Switch off Google Maps downloading";<br>
  "-mercator", Arg.Unit (fun () -> projection:=G.Mercator),"Switch to (Google Maps) Mercator projection, default";<br>
"-lambertIIe", Arg.Unit (fun () -> projection:=G.LambertIIe),"Switch to LambertIIe projection";<br>
  "-mplayer", Arg.Set_string mplayer, "Launch mplayer with the given argument as X plugin";<br>
"-ign", Arg.String (fun s -> ign:=true; IGN.data_path := s), "IGN tiles path";<br>
  "-no_alarm", Arg.Set no_alarm, "Disables alarm page";<br>
"-ortho", Arg.Set_string get_bdortho, "IGN tiles path";<br>
  "-no_google_http", Arg.Set Gm.no_http, "Switch off Google Maps downloading";<br>
"-edit", Arg.Unit (fun () -> edit := true; layout_file := "editor.xml"), "Flight plan editor";<br>
  "-ortho", Arg.Set_string get_bdortho, "IGN tiles path";<br>
"-layout", Arg.Set_string layout_file, (sprintf "<XML layout specification> GUI layout. Default: %s" !layout_file);<br>
  "-particules", Arg.Set display_particules, "Display particules";<br>
"-no_alarm", Arg.Set no_alarm, "Disables alarm page";<br>
    "-plugin", Arg.Set_string plugin_window, "External X application (launched with the id of the plugin window as argument)";<br>
"-auto_ortho", Arg.Set auto_ortho, "IGN tiles path";<br>
  "-ref", Arg.Set_string geo_ref, "Geographic ref (e.g. 'WGS84 43.605 1.443')";<br>
"-google_fill", Arg.Set GM.auto, "Google maps auto fill";<br>
  "-speech", Arg.Set Speech.active, "Enable vocal messages";<br>
"-speech", Arg.Set Speech.active, "Active vocal messages";<br>
  "-srtm", Arg.Set srtm, "Enable SRTM elevation display";<br>
"-particules", Arg.Set display_particules, "Display particules";<br>
  "-track_size", Arg.Set_int Live.track_size, (sprintf "Default track length (%d)" !Live.track_size);<br>
"-wid", Arg.String (fun s -> wid := Some (Int32.of_string s)), "<window id> Id of an existing window to be attached to";<br>
  "-utm", Arg.Unit (fun () -> projection:=G.UTM),"Switch to UTM local projection";<br>
"-m", Arg.String (fun x -> map_files := x :: !map_files), "Map description file(SRTM)"<br>
  "-wid", Arg.String (fun s -> wid := Some (Int32.of_string s)), "<window id> Id of an existing window to be attached to";<br>
  "-zoom", Arg.Set_float zoom, "Initial zoom";<br>


=== Video plugin ===
=== Video plugin ===

Revision as of 13:23, 8 July 2008

Control Panel

The control panel is launched with the following command:

./sw/supervision/paparazzi.pl

and is used to launch individual portions of the GCS (Programs) or the entire GCS (Sessions) with the modem and map settings defined in /conf/control_panel.xml

Configuration Options

Here are the diffrent Configuration Options for launching the GCS. They are a bit crude since they are simply pasted here from the code.

  "-auto_ortho", Arg.Set auto_ortho, "IGN tiles path";
"-b", Arg.String (fun x -> ivy_bus := x), "Bus\tDefault is 127.255.255.25:2010";
"-center", Arg.Set_string center, "Initial map center (e.g. 'WGS84 43.605 1.443')";
"-center_ac", Arg.Set auto_center_new_ac, "Centers the map on any new A/C";
"-edit", Arg.Unit (fun () -> edit := true; layout_file := "editor.xml"), "Flight plan editor";
"-fullscreen", Arg.Set fullscreen, "Fullscreen window";
"-google_fill", Arg.Set GM.auto, "Google maps auto fill";
"-ign", Arg.String (fun s -> ign:=true; IGN.data_path := s), "IGN tiles path";
"-lambertIIe", Arg.Unit (fun () -> projection:=G.LambertIIe),"Switch to LambertIIe projection";
"-layout", Arg.Set_string layout_file, (sprintf "<XML layout specification> GUI layout. Default: %s" !layout_file);
"-m", Arg.String (fun x -> map_files := x :: !map_files), "Map XML description file";
"-maximize", Arg.Set maximize, "Maximize window";
"-mercator", Arg.Unit (fun () -> projection:=G.Mercator),"Switch to (Google Maps) Mercator projection, default";
"-mplayer", Arg.Set_string mplayer, "Launch mplayer with the given argument as X plugin";
"-no_alarm", Arg.Set no_alarm, "Disables alarm page";
"-no_google_http", Arg.Set Gm.no_http, "Switch off Google Maps downloading";
"-ortho", Arg.Set_string get_bdortho, "IGN tiles path";
"-particules", Arg.Set display_particules, "Display particules";
"-plugin", Arg.Set_string plugin_window, "External X application (launched with the id of the plugin window as argument)";
"-ref", Arg.Set_string geo_ref, "Geographic ref (e.g. 'WGS84 43.605 1.443')";
"-speech", Arg.Set Speech.active, "Enable vocal messages";
"-srtm", Arg.Set srtm, "Enable SRTM elevation display";
"-track_size", Arg.Set_int Live.track_size, (sprintf "Default track length (%d)" !Live.track_size);
"-utm", Arg.Unit (fun () -> projection:=G.UTM),"Switch to UTM local projection";
"-wid", Arg.String (fun s -> wid := Some (Int32.of_string s)), "<window id> Id of an existing window to be attached to";
"-zoom", Arg.Set_float zoom, "Initial zoom";

Video plugin

The -mplayer option of GCS allows to the user to display a video stream in a window of the GCS. The video window can also be exchanged with the map by clicking anywhere inside the frame. Use the following line in your /conf/control_panel.xml to enable the video window.

path_to_ground_segment/cockpit/gcs -mplayer rtsp://localhost:7070/video

Layout

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