Lie-group modeling and numerical simulation of a helicopter