I attempted to build flight control software for a quadcopter[1]. I had a few major life changes around this time and it got packed up and I stopped working on it before I got the PID controllers worked out. But I essentially wrote a small game engine and had to learn a little calculus along the way.