13 Developer Optical Flow discussion thread Posted by Randy on November 22, 2015 at 5:28pm This is a discussion of getting the PX4Flow sensor working with Copter-3.3.1 (or higher). You need to be a member of diydrones to add comments! Join diydrones Tags: arducopter, copter-331, copter-332, of_loiter, opticalflow, px4flow, developer Email me when people reply – Follow
I struggled for days trying to setup the OpticalFlow with APM Flight Stack. Never worked. If you are using Pixhawk, then I suggest you switched the PX4 Flight Stack since it works flawless. See test video here: https://youtu.be/G7fGC4OmxO0
Instructions here: http://dev.px4.io/flow_lidar_setup.html
Hi, can any body help me to connect the px4f
Thanks for the response :)
Can you help me know the location of the RNGFND_MAX_CM parameter.
I've never heard of a 10m limitation. Are you sure that the range finder parameters are all set correctly? There is a RNGFND_MAX_CM parameter. As a side note, I plan to test optical flow with the light ware range finders on my new development copter over the next month or so all using Copter-3.4. I hope I will be able to help iron out issues if i hit any.
I have the pixracer working with code compiled from the master. On my pixhawk I can use the px4flow module, but on the pixracer it fails to open the driver. I can't find the source of the problem in the code. Does anyone know the issue?
Looks like my issue was that the compass was not enabled. It shouldn't need to be for optical flow, but it's all ok now.
I realized my rangefinder value was erratic at takeoff. I moved the rangefinder higher, and it now has better performance, but still no Opitcal Flow control. Log is attached.
Jared Muirhead said:
I just tried adding the PX4 optical flow module onto my copter. I also have a maxbotix 1040.
I have set:
EK2_GPS_TYPE = 3
FLOW_ENABLE = 1
EKF_ALT_SOURCE = 1
I have had good success following the test document listed here:
I body, flow and gyro have good correspondence (log is attached).
When I attempt to fly, the optical flow is not working at all. I have substantial drift. Looking at the logs of the flight (also attached, I can see that EKF5.FIX and EKF5.FIY are flat-lined and EKF4.SS has a true in bit 7 and a false in bit 3, which I understand are wrong.
Does anyone see what is wrong with my configuration (also attached) that is making optical flow not work?
I have the px4flow with an integrated Sonar. I hoked it up to my PIXHAWK and choosed Sonar over I2C but still I don't get any readings. How could I test wehter the sonar data is actually transmitted over the I2C bus to the PIXHAWK?