Optical-flow inconsistent response

Hi Ardupilot community,

I am using an MTF-02 optical flow module with a BETAFPV F405. OF is disabled by default for flash savings, but I was able to use custom.ardupilot.org to generate a firmware with optical flow functionality. I’m able to monitor (opt_m_x/y) and see a result.

This would be fine and dandy, but I am also writing a custom mode and locally generating a binary. When I include the extra_hwdef.dat that was generated by the web tool, I return to no opt_m_x/y. What confuses me is that the .bin and .apj are identical between the web tool and my local environment (before the new mode is implemented). After I flash, there are some differences between the .parm’s but nothing that I notice as impactful.

Let me know if you have any suggestions to enable optical flow in my local environment.

The solution to this was to revert the firmware to the most recent working release … copter 4.4.4. Should of thought of this sooner lol.