Unable to get response from px4flow

Hello everyone!
I have a trouble with setup px4flow on my quad via i2c. I read the article about setup of px4flow and succesfully flashed firmware from it and calibrated good focus of the px4flow lense, but further I had no success.

Flight controller and pxflow links:
FC: Pixhack nano
cuav px4flow 2.1

I am not sure what exatcly I am doing wrong.
I have read this and these posts.
After reading I added separate power and gnd to i2c hub from 5v PDB, lights on the px4flow was flashing, but I had all rellated params is zero( I mean opt_x, opt_y).

Also it’s not clear which adress I have to set as FLOW_ADDR. If this value = 0 nothing happening. I found from source code that by default i should be 0x42, and set to FLOW_ADDR as 66, but it didn’t help, I see bad optflow health that’s all. Please advice some way to solve it.

Params of quad: https://1drv.ms/u/s!AiGtL7PtkJNfgeAPR5aXlOb8f-6o4Q
Logs with enabled px4flow: https://1drv.ms/u/s!AiGtL7PtkJNfgeAN6kprv7y4mF8O0g

So at the weekend I found out i2c address of my pxflow by using arduino i2c scanner, as expected it was 0x42. Continue investigation.:thinking:

The adress should be set to default: 0
Did you tried connecting directly to I2C port ?

Finally I got some data from px4flow thanks a lot! What I did: used default address l, separate power source, and leave some space under my quad. So next question about orientation of px4flow, I see xyz axes print on px4flow, and x axis hasn’t the same direction as my flight controller…

For this , follow method showned in the wiki, as you will align and adjust OF gains in relation to FC IMU

Hi again @ppoirier, could you please shed light on some not clear parts on the px4flow wiki. The problem is the missing of any values in logs named as EKF5.meaRng.

I found at the begging of px4flow wiki that:

although the sensor may be supplied with a built-in Maxbotix LZ-EZ4 sonar to measure height, this has not been reliable enough over a range of surfaces in testing.

Does it means that missing of EKF5.meaRng is ok? and ardupilot just ignores my px4flow inbuild sonar? or such value should be exists anyway?

Also if I have to have separte lidar maybe you know a cheaper version than LightWare SF10b(300$ it’s too much to my hobby:sweat_smile:)

Rangefinder is required for Optical Flow as the EKF uses it for pixel scaling = better velocity estimates

You can use Garmin Lidar Lite V3 for medium range or Benewake TFMINI for short range

can you specify how did you solve this? because I have the same problem here.