Tricopter is a project mainly written in JAVA and C, it's free.
Arduino code for my tricopter
This is the source code for my MultiWii Tricopter.
Here's a vid: http://www.youtube.com/watch?v=cNIOB_eF55M