The source code for my NXT balancing robot is available here. It is built using the leJOS Java system.
Copyright ©1998-2009 Andy Shaw