Template files for mavsim, the simulator developed in Small Unmanned Aircraft: Theory and Practice.
There are three implementations of the simulator to build on, each one has its own README indicating how to build and use that particular implementation.