Online intelligent flight control using reinforcement learning