Trajectory control and dynamic modeling of a tailless flapping-wing robot