Cannot switch to loiter mode with optical flow

Yes same problem I faced.

There is a small thing you can do, power the px4flow from on board computer if you have it will work.

or connect the usb first and then connect the battery and remove the usb, then it will work. The problem is with booting. The same problem is there with PX4 flight stack, there is hack for that. I checked the same for arducopter I didn’t find any use full patches.