So, I get an optical flow sensor. Itâs activated on mission planner. I donât know if itâs working weel because I get no log about it.
In 3.1.5 fw version I get correctly the graph in +OF logs, in 3.2 the graph is empty.
The OF_loiter look working in flight, so if I get no log peraps itâs simply a classic loiter. How to verify?
I am setting up a px4 flow sensor with a hawk FC and have not been able to get any data to show in MP or in APM 2.0 to confirm that the sensor is working. The px4flow is updated through MP and optical flow is enabled.
Hi
I am having a problem testing my ADNS 3038 optflow sensor. Its installed on a APM 2.5 Quad.
Tried to get reading on 3.1 firmware but nothing shows in test â0ptflowâ only zeroâs in the terminal cli
With 3.2 only garbage. Is there any other way to test it??
Iâve got this far with the testing of ADNS 3080 optflow sensor.
typing âiâ displays a number image which varies on each test depending where the camera is pointing. All very good.
âmâ and âIâ do not work.
â˘Connect to your APM with the Serial Monitor or AP Mission Planner Terminal
â˘type âcâ to ensure that the sensor is responding to the APM
â˘type âmâ and move the camera back and forth and check that x,y values change. If they do not change, modify the focus of the lens by turning it left or right.
[attachment=0]OpticalFlow_test.jpg[/attachment]
I then install 3.2 firmware and setup flight mode âOF_Loiterâ which shows in the HUD when switched on.
As soon as you ARM the quad, you cannot switch 'OF_Loiter on, it stays in stablise. other modes work OK
I too am having the exact same issue as OAPpilot. I have verified that the 3DR Optical Flow sensor is working and have focused the lense. Data is being received in the test firmware as per the instructions.
I have activated the sensor in Mission planner, and added the OF_Loiter flight mode. I can see where the flight mode is highlighted when testing the flight mode selections in mission planner, but the OF_Loiter mode remains green and the previous selected mode remains selected.
I have the ability to select 6 different flight modes from my RC transmitter, and all 6 work without issue. When I change one of the 6 modes selections to OF_Loiter, that one mode will not activate.
I tried activating it inside and outside a building. I tried without GPS lock and with GPS lock. I tried within 3-5 feet from the ground, and at higher elevations. Always the same result, OF_Loiter mode will not activate.
Hi CRPerryJr
I have found that the flight modes work OK if you run firmware version 3.15, but not in the latest firmware 3.2.
My main problem now is getting it in focus. I donât know how to get the image grabber sketch working in Python? Also how to compile the image grabber sketch. Any help with this would be most appreciated. . as I am no :geek:
The only issue I had was trying to find the ADNS3080ImageGrabber.py, which I have attached in this post. Please follow the directions as listed at this link, and you should be ok.
Just change the location of the ADNS3080ImageGrabber.py file to wherever you saved it. (The attached version is compressed, so youâll have to uncompressed it first.)
Thank you for the file.
my problem is what do you do at stage 5 of the instructions. I have python loaded and the idle program.
I can get the grabber into the idle window, then Iâm stuck what to do?
Hi
Problem solved, I had downloaded the latest version of PYTHON ver 3.4.3 which was causing the compile fault.
I then down loaded the 2.79 version of PYTHON and it all works fine. I can run the âImageGrabberâ and at last be able to focus the optflow.
Glad I could assist. Now if we could just get this thing to work in 3.2!
To recap the issue:
3DR Optical flow installed and configured as required.
Optical Flow Sensor enabled in MP.
Added OF-Loiter as flight mode.
When activating OF-Loiter mode during flight, it never engages, and it never displays âOF_Loitâ on my FPV Telemetry screen or in Mission Planner. The previously selected flight mode remains. All other flight modes work as required.
When testing on the bench using MPâs Flight Mode Configuration, I cannot select OF_Loiter from my transmitter. It stays on whatever flight mode was previously selected.
As an example:
Flight mode 1= Stabilize
Flight mode 2= OF_Loiter
Flight mode 3= Loiter
Flight mode 4= Auto
I select 1 with the transmitter, switches to flight mode 1 and functions correctly
I select 2 with the transmitter, stays on flight mode 1.
I select 3 with the transmitter, switches to flight mode 3 and functions correctly.
I select 2 with the transmitter, stays on flight mode 3.
It doesnât matter which Flight mode position I place OF_Loiter. It will not engage in any position.
Any assistance is greatly appreciated. (I really donât want to back track to 3.1 if I donât have to.)
I have had to go back to Firmware 3.1.5 to get the flight modes to work with the ADNS 3080 optflow sensor.
on my APM 2.6 Quad. It now works as well on Gud in mission Planner, and the logs.
Iâve attached a log that shows readings on the OP graph. Can anybody inform me if the figures are what they should be? If not to please, tell me what reading I should be getting.
The quad holds it height. better in the OP_loiter but does move about quite a bit, on a varied grass surface.
I am back at this againâŚ
Running the latest 3.5 stable release.
Before I go on, if there is a more current thread that already answers my question please direct me thereâŚ
Px4flow is showning changing x and y values is the status window of mission planner, but when logging only one value changes, (OF flow x)the other to values (OF body x and IMU gut x) from the wiki are flat line.
I can not produce a graph that looks any thing like the wiki.
Also, there is no OF loiter option coming up in the modes options now. What mode is used now?
Is there a current guide to correctly set up optical flow on 3.5? The wiki for the Px4flow is a bit out of date.