I just updated my Quad from AC 3.6.10 Nuttx to Arducopter 4.0.
After the update I am getting now a Bad Optical Flow Health message and zero readings on opt_m_x, opt_m_y, opt_x, opt_y and opt_qua.
All parameters look ok, and the wiring of the PX4Flow is ok.
Optical Flow was working 100% fine with AC3.6 with 100% identical hardware setup prior to the upgrade.
Another strange observation is with my LidarLite Rangefinder connected through PWM. While I am getting reasonable readings for sonarrange and rangefinder1, the Parameter RNGFND1_OFFSET has zero effect on the readings. This was also working well with AC3.6.
Any ideas?
I just retested with AC4.0.1 RC2 and with AC 3.6.12 NUTTX.
While the PX4Flow works fine with AC3.6, it fails to produce any output with AC 4.
I am on a Cube green.
Thanks very much for that. I’ve reproduced the issue including it being a regression compared with Copter-3.6.12 so we will investigate and hopefully come up with a fix soon.
OK, I think I’ve found the issue and created a PR to fix it. It needs to be peer reviewed but I expect it will be included in 4.0.2 which will likely start beta testing soon after 4.0.1 becomes the stable version.
Another common issue is the flow sensor comes up too slowly so you need to set BRD_BOOT_DELAY to 600 to delay the autopilot’s startup (by 0.6sec) to give time for the flow sensor to boot up first.