With FLOW_ENABLE = 1, AHRS_EKF_TYPE = 3, AHRS_GPS_USE = 0, EK3_ENABLE = 1 and EK2_ENABLE = 0.
PX4FLOW was detected by AC3.6-dev I confirmed it via NSH console.
Following command typed on my ubuntu machine.
I could find the message in console that is “Found PX4Flow on bus 1”.
But optm_x, optm_y, opt_x and opt_y were updated only once.
Their values did not update despite I rotate about PX4LOW in roll and pitch.
Should I need to remove PX4FLOW firmware ?
Where do you try to read these values?
Within Mission Planner, open the Flight Data screen’s Status tab. If the sensor is operating you should see non-zero opt_m_x, opt_m_y and an opt_qua values.
I connected PixHawk to Mission Planner via USB and then I push PX4FLOW 's reset switch after a few seconds the value of opt_m_x, opt_m_y and opt_qua in HUD are updated only once.
After that these values are not updated. I try this operation several times the results are same.
I will take a video which I am operating PX4FOW and Mission plannner then upload it to youtube and I post its url here.
Please wait for until tomorrow.
I just received my Pixhawk, connected USB, updloaded latest firmware, connected the px4flow and configured.
After reboot (necessary because of the I2C init), reconnected to mission planner and it works fine
See the numbers under the HUD (0 .12 & -0.15)
I tried it to use latest firmware (AC 3.6-dev) then the number of opt_m_y and opt_m_x appeared on the HUD (0.7 & 0.1).
I try moving the opticalflow camera around but these values remain unchanged.
As is obvious I do it in lighted environment.
If you moving optcalflow camera around the value of opt_m_y and opt_m_x on HUD are updated?
I’m following this thread and it’s being very interesting to read! One question: If GPS is lost during flight, would the FC switch to OpticalFlow automatically and maintain position? I’m thinking about having OpticalFlow as a failsafe to prevent the Copter to fly away when there is no more GPS. Is that a real use case?
Yes, actually the EKF is blending both signals and will progessively reject a bad Gps and use the opticalflow as the velocity estimator (with IMU as state estimators as well). When Gps gets back to normal the EKF will mix it back.
There is are parameters EK2 and EK3 than set the gps and other state estimators confidence levels
Hello everyone, I do not know if it is the right thread for this query but since I see that it seems that you have worked with the px4flow you can maybe tell me what I am doing wrong.
Hi @misoragod
Have you solved the problem.I currently using px4flow, and I encountered the same problem(Bad OptFlow Health).I have questions below
I must buy another rangefinder which means I cannot use built-in Maxbotix LZ-EZ4 sonar,but I saw the video in your youtube, it seems you don’t use any other rangefinder in the video.How does it works?
I am using pixhawk4 mini and the current mission planer version is 1.13.74 APM version is 4.1.0