<!DOCTYPE module SYSTEM "module.dtd">

<module name="sim" dir="simulator">
  <doc>
    <description>
      Basic Simulator (SIM)

      Bindings between embedded autopilot code and a flight dynamic model (FDM).
      FDM and low level code is written in OCaml.
      Only for fixed-wing.
    </description>
  </doc>
  <header/>
  <makefile target="sim">
    <define name="SITL"/>
    <raw>
      UNAME = $(shell uname -s)
      ifeq ("$(UNAME)","Darwin")
        sim.CFLAGS += $(shell if test -d /opt/paparazzi/include; then echo "-I/opt/paparazzi/include"; elif test -d /opt/local/include; then echo "-I/opt/local/include"; fi)
      endif
    </raw>
    <file_arch name="sim_ap.c" dir="."/>
    <file_arch name="sim_gps.c" dir="."/>
    <file_arch name="sim_adc_generics.c" dir="."/>
    <file_arch name="sim_ahrs.c" dir="."/>
    <file_arch name="sim_ir.c" dir="."/>
  </makefile>
</module>

