I was out doing an auto Optical Flow calibration and it seemed to complete ok based on the logs.
I am using the following hardware:
Pixhawk Cube
Lightware SF/11C Range Finder (connected to GPS1 I2C)
PX4Flow (connected to I2C port)
I switched the drone into Optical Flow Loiter instead of GPS and it was okay for a couple of seconds until I was getting an “EKF Variance” error where it then entered failsafe mode and landed.
I have been fighting this issue for quite some time now. My suspicion is this:
My range finder seems to be glitching out jumping to 140m range every couple of seconds. I tried to combat this by adding a voltage regulator and powring directly from the board instead of the Pixhawk (no luck). The light ware software doesn’t seem to have an issue reading the data from the device so im kind of lost at this point.
If anyone has any ideas I would love to hear them, thank you!!!
More information here, could this be an issue with Cube Orange? Sure it isnt an issue rather than config param that needs to get changed because of the setup with Cube Orange.
Thanks for the report and giving the optical flow calibration a try.
I agree that the issue is most likely the rangefinder which seems to be losing it’s ability to track the ground very often even at relatively low altitudes.
Thank you for the response! I set up a support ticket with Lightware.
It’s strange that this range finder worked with my other setup (Navio 2) and it also works in the Lightware studio when I plug in via USB. I’m not sure if I’m too convinced that it is the range finder.
Just an update here… Tried to comment that block out and re-built arducopter with that change and it effected nothing; Still had the jumps to max distance every second or so.