Difference between revisions of "Conf.xml"

From PaparazziUAV
Jump to navigation Jump to search
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The <tt><b>conf/conf.xml</b></tt> file associates the flight plan and various hardware/software configuration files with a partticular aircraft, identified by <tt>name</tt> and <tt>ac_id</tt>. This file is handled by the [[Paparazzi_Center|Paparazzi Center]] so it is usually not needed to edit it by hand.
The <tt><b>conf/conf.xml</b></tt> document associates the flight plan and various hardware/software configuration files with a particular aircraft, identified by <tt>name</tt> and <tt>ac_id</tt>. The values in this document are set and handled by the [[Paparazzi_Center|Paparazzi Center]] so it is usually not needed to edit the configuration document manually.
 


== Syntax ==
== Syntax ==
  <tt>
  <nowiki>
<?xml version="1.0"?>
<conf>
  <aircraft
    name="Twin1"
    ac_id="1"
    airframe="airframes/twinstar1.xml"
    radio="radios/mc3030.xml"
    flight_plan="flight_plans/mav05_cw.xml"
    telemetry="telemetry/default.xml"
    gui_color="blue"
  />
   <aircraft  
   <aircraft  
     name="Plaster"
     name="Plaster"
     ac_id="7"
     ac_id="2"
     airframe="airframes/plaster1.xml"  
     airframe="airframes/plaster1.xml"  
     radio="radios/cockpitMM.xml"  
     radio="radios/cockpitMM.xml"  
    flight_plan="flight_plans/generic.xml"
     telemetry="telemetry/default.xml"
     telemetry="telemetry/default.xml"
     settings="settings/basic.xml"
     flight_plan="flight_plans/dummy.xml"
    gui_color="red"
  />
   /></tt>
  .
  .
   .
</conf></nowiki>
where:  
where:  
* <tt>name</tt> is the name of the aircraft which will appear in different places in the [[GCS|GCS]]
* <tt>name</tt> is the name of the aircraft which will appear in different places in the [[GCS|GCS]]
* <tt>ac_id</tt> is a unique integer (between 1 and 255) identifying the aircraft (especially in the communication messages)
* <tt>ac_id</tt> is a unique integer (between 1 and 255) identifying the aircraft (especially needed in the communication messages)
* <tt>airframe</tt> is the file name containing the parameters of the aircraft
* <tt>airframe</tt> is the file name containing the parameters of the aircraft
* <tt>radio</tt> is the file name containing the description of the RC transmitter
* <tt>radio</tt> is the file name containing the description of the RC transmitter
* <tt>flight_plan</tt> is the sequence of actions and waypoints describing the desired trajectory
* <tt>flight_plan</tt> is the sequence of actions and waypoints describing the desired trajectory
* <tt>telemetry</tt> is the file name containing the set of messages sent over the telemetry link
* <tt>telemetry</tt> is the file name containing the set of messages sent over the telemetry link
* <tt>settings</tt> is the file name containing the set of parameters that can be configured thru the telemetry link
* <tt>settings</tt> is the file name containing the set of parameters that can be configured through the telemetry link
* <tt>gui_color</tt> is the color assigned to this aircraft in the GCS
* <tt>gui_color</tt> is the color assigned to this aircraft in the GCS
All these attributes are required except the last two (<tt>settings</tt> and <tt>gui_color</tt>) which are optional.
All these attributes are required except the last two (<tt>settings</tt> and <tt>gui_color</tt>) which are optional.


The following sections describe these xml files.
The following sections describe these xml documents:
* [[Radio_Control|Radio Control]]  
* [[Radio_Control|Radio Control]]  
* [[Airframe_Configuration|Airframe]]
* [[Airframe_Configuration|Airframe]]
Line 31: Line 44:
* [[Telemetry|Telemetry]]
* [[Telemetry|Telemetry]]
* [[Settings]]
* [[Settings]]
[[Category:Software]] [[Category:User_Documentation]]

Latest revision as of 07:48, 22 August 2011

The conf/conf.xml document associates the flight plan and various hardware/software configuration files with a particular aircraft, identified by name and ac_id. The values in this document are set and handled by the Paparazzi Center so it is usually not needed to edit the configuration document manually.

Syntax

<?xml version="1.0"?>
<conf>
  <aircraft 
    name="Twin1"
    ac_id="1"
    airframe="airframes/twinstar1.xml" 
    radio="radios/mc3030.xml" 
    flight_plan="flight_plans/mav05_cw.xml"
    telemetry="telemetry/default.xml"
    gui_color="blue"
  />
  <aircraft 
    name="Plaster"
    ac_id="2"
    airframe="airframes/plaster1.xml" 
    radio="radios/cockpitMM.xml" 
    telemetry="telemetry/default.xml"
    flight_plan="flight_plans/dummy.xml"
  />
  .
  .
  .
</conf>

where:

  • name is the name of the aircraft which will appear in different places in the GCS
  • ac_id is a unique integer (between 1 and 255) identifying the aircraft (especially needed in the communication messages)
  • airframe is the file name containing the parameters of the aircraft
  • radio is the file name containing the description of the RC transmitter
  • flight_plan is the sequence of actions and waypoints describing the desired trajectory
  • telemetry is the file name containing the set of messages sent over the telemetry link
  • settings is the file name containing the set of parameters that can be configured through the telemetry link
  • gui_color is the color assigned to this aircraft in the GCS

All these attributes are required except the last two (settings and gui_color) which are optional.

The following sections describe these xml documents: