Optical flow based navigation for an indoor UAV