Code of the flapping bird robot project at CRIM