How to setup and check Optical flow

Please take a look at this thread:
The copter does not takeoff in Guided mode and EKF_GPS_TYPE = 3 (optical flow)