Paparazzi UAS  v5.15_devel-58-g208c37b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sim module

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.

Example for airframe file

Add to your firmware section:

1 <module name="sim"/>

Files

Source Files

  • arch dependent: ./sim_ap.c
  • arch dependent: ./sim_gps.c
  • arch dependent: ./sim_adc_generics.c
  • arch dependent: ./sim_ahrs.c
  • arch dependent: ./sim_ir.c

Raw sim.xml file:

<!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>