<joystick>
 <input>
  <axis index="0" name="roll" deadband="15"/>
  <axis index="1" name="pitch" deadband="15"/>
  <axis index="3" name="yaw" deadband="15"/>
  <axis index="4" name="tilt"/>
  <button index="3" name="X"/>
  <button index="0" name="down"/>
  <button index="1" name="up"/>
  <button index="4" name="Y"/>
</input>
<messages period="0.1">
  <message class="datalink" name="BOOZ2_FMS_COMMAND">
   <field name="h_mode" value="IndexOfEnum(NAV)"/>
   <field name="v_mode" value="IndexOfEnum(NAV)"/>
   <field name="v_sp"   value="(up-down)*127"/>
   <field name="h_sp_1" value="0-pitch"/>
   <field name="h_sp_2" value="roll"/>
   <field name="h_sp_3" value="yaw"/>
  </message>

  <message class="ground" name="DL_SETTING">
    <field name="index" value="IndexOfSetting(booz2_cam_tilt_pwm)"/>
    <field name="value" value="Scale(tilt, 1000, 2000)"/>
  </message>

  <message class="ground" name="JUMP_TO_BLOCK" on_event="X && Y">
    <field name="block_id" value="IndexOfBlock('land here')"/>
  </message>
 </messages>
</joystick>
