<control_panel name="OBC2014 control panel">
  <section name="variables">
    <variable name="downlink_serial_port" value="/dev/ttyUSB0"/>
    <variable name="fbw_serial_port" value="/dev/ttyS1"/>
    <variable name="ap_serial_port" value="/dev/ttyS0"/>
    <variable name="ivy_bus" value="127:2010"/>
    <variable name="map" value="muret_UTM.xml"/>
    <variable name="flight_plan" value="flight_plans/muret1.xml"/>
  </section>
  <section name="programs">
    <program name="Server" command="sw/ground_segment/tmtc/server">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Data Link" command="sw/ground_segment/tmtc/link">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Link Combiner" command="sw/ground_segment/python/redundant_link/link_combiner.py"/>
    <program name="GCS" command="sw/ground_segment/cockpit/gcs">
      <arg flag="-speech"/>
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Flight Plan Editor" command="sw/ground_segment/cockpit/gcs -edit"/>
    <program name="Messages" command="sw/ground_segment/tmtc/messages">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Settings" command="sw/ground_segment/tmtc/settings">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="GPSd position display" command="sw/ground_segment/tmtc/gpsd2ivy"/>
    <program name="Log Plotter" command="sw/logalizer/logplotter"/>
    <program name="Real-time Plotter" command="sw/logalizer/plotter"/>
    <program name="Log File Player" command="sw/logalizer/play">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Simulator" command="sw/simulator/pprzsim-launch">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Joystick" command="sw/ground_segment/joystick/input2ivy">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Hardware in the Loop" command="sw/simulator/simhitl">
      <arg flag="-fbw" variable="fbw_serial_port"/>
      <arg flag="-ap" variable="ap_serial_port"/>
    </program>
    <program name="Environment Simulator" command="sw/simulator/gaia">
      <arg flag="-b" variable="ivy_bus"/>
    </program>
    <program name="Plot Meteo Profile" command="sw/logalizer/plotprofile"/>
    <program name="Weather Station" command="sw/ground_segment/misc/davis2ivy">
      <arg flag="-b" variable="ivy_bus"/>
      <arg flag="-d" constant="/dev/ttyUSB1"/>
    </program>
    <program name="IvySerialBridge" command="sw/ground_segment/tmtc/ivy_serial_bridge"/>
    <program name="Photolist" command="sw/tools/photolist/build/photolist | tee photolist.log -a"/>
    <program name="Ivy2NMEAout" command="sw/ground_segment/misc/ivy2nmeaout">
      <arg flag="-b" variable="ivy_bus"/>
      <arg flag="-d" constant="/dev/ttyUSB1"/>
      <arg flag="-s" constant="9600"/>
    </program>
  </section>
  <section name="sessions">
    <session name="OBC2014 Simulation FG">
      <program name="GCS">
        <arg flag="-layout" constant="./OPENUAS/openuas_obc2014_kingaroy.xml"/>
        <arg flag="-maps_fill"/>
        <arg flag="-zoom" constant=".5"/>
        <arg flag="-track_size" constant="200"/>
        <arg flag="-speech"/>
        <arg flag="-maps_no_http"/>
      </program>
      <program name="Server">
        <arg flag="-n"/>
      </program>
      <program name="Simulator">
        <arg flag="-a" constant="Vivify"/>
        <arg flag="-t" constant="sim"/>
        <arg flag="--boot"/>
        <arg flag="--norc"/>
        <arg flag="--fg_host" constant="127.0.0.1"/>
        <arg flag="--fg_time_offset" constant="21600"/>
      </program>
      <program name="Environment Simulator"/>
    </session>
    <session name="OpenUAS Fieldtest">
      <program name="Data Link">
        <arg flag="-d" constant="/dev/ttyUSB0"/>
        <arg flag="-uplink"/>
        <arg flag="-s" constant="9600"/>
      </program>
      <program name="Server"/>
      <program name="GCS">
        <arg flag="-speech"/>
        <arg flag="-maps_fill"/>
        <arg flag="-mercator"/>
        <arg flag="-maps_no_http"/>
        <arg flag="-track_size" constant="300"/>
        <arg flag="-zoom" constant="0.5"/>
      </program>
      <program name="Messages"/>
    </session>
    <session name="OpenUAS OBC2014">
      <program name="Data Link">
        <arg flag="-d" constant="/dev/ttyUSB0"/>
        <arg flag="-uplink"/>
        <arg flag="-s" constant="9600"/>
      </program>
      <program name="Server"/>
      <program name="GCS">
        <arg flag="-speech"/>
        <arg flag="-mercator"/>
        <arg flag="-maps_no_http"/>
        <arg flag="-track_size" constant="300"/>
        <arg flag="-zoom" constant="0.5"/>
      </program>
      <program name="Messages"/>
    </session>
    <session name="HITL">
      <program name="Hardware in the Loop">
        <arg flag="-a" constant="HITL"/>
        <arg flag="-noground"/>
        <arg flag="-boot"/>
      </program>
      <program name="GCS"/>
      <program name="Data Link">
        <arg flag="-s" constant="57600"/>
      </program>
      <program name="Server"/>
      <program name="Ivy2NMEAout" command="sw/ground_segment/misc/ivy2nmeaout">
        <arg flag="-b" variable="ivy_bus"/>
        <arg flag="-d" constant="/dev/ttyUSB1"/>
        <arg flag="-s" constant="9600"/>
    </program>
    </session>
    <session name="OpenUAS Simulation with OBC 2014 GUI">
      <program name="GCS">
        <arg flag="-speech"/>
        <arg flag="-layout" constant="./OPENUAS/openuas_searchandrescue2014.xml"/>
        <arg flag="-center" constant="'WGS84"/>
        <arg flag="51.990" constant="4.378'"/>
        <arg flag="-ref" constant="'WGS84"/>
        <arg flag="51.990" constant="4.378'"/>
      </program>
      <program name="Server">
        <arg flag="-n"/>
      </program>
      <program name="Simulator">
        <arg flag="-a" constant="Vivfify"/>
        <arg flag="-boot"/>
        <arg flag="-norc"/>
      </program>
      <program name="Environment Simulator"/>
    </session>
    <session name="OpenUAS Forward AC via UDP">
      <program name="Ivy2Udp">
        <arg flag="-b" constant="127:2010"/>
        <arg flag="-h" constant="192.168.78.1"/>
        <arg flag="-p" constant="4242"/>
        <arg flag="-dp" constant="4243"/>
        <arg flag="-id" constant="16"/>
      </program>
    </session>
    <session name="OpenUAS USB0: Xtend Transparent @9600 with HW flowcontrol">
      <program name="Data Link">
        <arg flag="-d" constant="/dev/ttyUSB0"/>
        <arg flag="-uplink"/>
        <arg flag="-s" constant="9600"/>
        <arg flag="-hfc"/>
      </program>
    </session>
  </section>
</control_panel>
