I am using the yaw pitch roll configuration and I want to achieve stable flight. So I want to use the optical flow values in the x and y direction to achieve this as my drone keeps drifting. I think it works when i put feedback loops in for the roll direction. But when i use pitch, the drone in the simulation just flips out? What am i doing wrong or how else can keep my drone aligned to the track or the arena around it?