My hereflow works well.
I was flying over grass which I’m not sure is the best texture for it. Also I’m using TFmini Lidar. Followed the wiki and it pretty much worked out of the box.
Malc
My hereflow works well.
I was flying over grass which I’m not sure is the best texture for it. Also I’m using TFmini Lidar. Followed the wiki and it pretty much worked out of the box.
Malc
I’m currently have a drifting problem with the HEREFLOW. There is a small constant drift in whichever direction the Hereflow camera is facing. For example, I have the camera side of the Hereflow pointing at the nose of the Pixhawk Cube and the drone would drift forward. Then when I flip it around 180 degrees and changed the Flow_orientation to 18000. It starts to drift backward. This is when I noticed that the OF.bodyY line is smaller than the OF.flowY. I followed the calibration process and try to change the FlowY_scaler so that OF.bodyY & OF.flowY would line-up but the number of FLowY_scaler doesn’t seem to change anything on the graph. Let me know if you want to see the logs.
does your hereflow work indoor (without GPS)? if so, how does it perform? My main goal is to have it fly indoor similar to those DJI Phantom. However, I’m having a drifting and yawing problem. The drift is related to which direction the camera side of the Hereflow is pointing (I explained this issue in more details on the comment above). The yawing problem is related to the position of the Hereflow relative to the center of the drone. It does not yaw relative to the center. I’ve measured and set all of those POSITION parameters but still now luck. I wonder if there has been a manufacture defect on my Hereflow.
Hi all, on my miniquad 3" i use this optical flow similar (the same?) heraflow. Works well indoor an outdoor (tested at 26m of altitude), but if i use this with TF Luna lidar (benewake), the behavior is unstable, and often leans in roll or pitch and becomes unmanageable.
This is only optical flow:
Here i post the log and pics
This is my optical flow module
@bugobliterator, @rmackay9, any suggestions for the scaling issue?
I can confirm the same issue regarding scaling. Some of my hereflow have the drift issue as well.
All I can say really is that the calibration and setting of the FLOW_POS_X/Y/Z is very important and greatly affects performance. It is also important that the rangefinder provide accurate values with few glitches.
I also don’t think that FlowHold mode works well for most users and I’ve toyed with the idea of removing it. Too many users have issues with FlowHold that it causes a significant support burden and leads to unhappy users.
I’ve got it on my to-do list to add an inflight flow calibration routine that would help users get a more accurate calibration. The code is not simple though and it would also require the users at least temporarily attach a GPS.
I love the idea of an inflight-flow calibration. For our aircraft we use it to augment the GPS, so no problems there.
I’ve been working on & off with the Hereflow + LightWare LW20b lidar for about 3 months. Here are all of my experiences with it:
All I want is to complete my drone build so it could somewhat perform like a DJI Phantom when flying indoor if you have ever seen one.
Randy, please don’t remove optical flow! I don’t think there are other sensors so cheap to hover a mini quad (like DJI mini), especially in indoor flight! I struggled a lot with the settings but now it works quite well outdoors and in direct sunlight as well. It costs about 10 usd and is very small even for a 3 "quad. My problems arise if I try to use it together with a small lidar like the benewake TF luna (small and inexpensive). Both sensors give correct readings, but if used together they are difficult to calibrate IMHO we should implement the wiki with documentation about it, optimize the code and add a calibration system by optimizing the blending even with traditional sensors (gps, mag, baro) Thanks!
ok. To be clear though, I never suggested that I would remove support for optical flow. This is what I wrote:
I also don’t think that FlowHold mode works well for most users and I’ve toyed with the idea of removing it.
FlowHold is a mode that relies only on the optical flow sensor and does not require a range finder. This mode does not work well for most users. Other modes like Loiter and PosHold can work quite well with optical flow.
Ok, thanks Randy
This is my FlowHold mode and works well (25 meters) without lidar:
This is my Loiter mode with same optical flow sensor + TF luna lidar:
In loiter the behavior of the quad becomes absolutely unstable, even if the reading in height is correct. In practice I have the opposite problem compared to the majority of users
If it helps, here I put a log with optical flow + lidar:
https://drive.google.com/file/d/1WTaUe8nHfsY8835HbvFl-bqd7JW1axjd/view?usp=sharing
Hi Alberto,
Thanks for the log. It looks like the RNGFND1_MAX_CM is set to perhaps 300 meaning that the rangefinder is only trusted to 3m. I’m not sure what the maximum range of the rangefinder is but it might be good to check this is correct.
There’s no parameters in the log file so I can’t really look for configuration issues. In general a .bin file is better than a .log file (and it’s smaller).
In any case, I think the next step towards improving our optical flow support is an inflight calibration routine. I can’t immediately promise when that will be done though.
Hi Randy,
sorry, the correct file is this, I hope it is useful:
https://drive.google.com/file/d/15xF_4Zy9IFm3NsWfpEchQQ-paCk9vIWN/view?usp=sharing
That’s right, I put the range at 300cm (outdoor use) as indicated in the wiki for my TF luna lidar, here:
https://ardupilot.org/copter/docs/common-benewake-tf02-lidar.html?highlight=lidar
As you can see from the log, I took the quad up to 10 meters high to see if, after the 3 meters limit, the behavior was better
Hi Thi_Van
i use lightweight SF20 + hereflow, I’ve been using EK2 no gps and mode is loiter.
Optical flow is installed under the copter, FLOW_POS_X/Y/Z is set zero.
I have not used FlowHold mode.
Hereflow is work correctly(indoor/outdoor), but Fly over 15 meters, hereflow is not well,
This is the result of my test, for your reference~
I suspect if you set the FLOW_POS_X/Y/Z parameters accurately you’ll find it works better above 15m. That’s my personal experience anyway.
Thank you for your reply. I could fly my quad 650 with my current setup with the Hereflow. However, the only problem that I’m having is the quad not Yawing with the center. It made a loop like it’s being yaw off-center and also drift a little bit to which direction it being yawed like cc or ccw. I’ve measured and change those FLOW_POS_X/Y/Z to where the Hereflow was positioned relative to the center of the quad.
I’m still getting very inconsistent Yawing.
I guess this could be caused by one of two things:
It might be interesting to see if the vehicle does better when using EKF3 and/or whether the vehicle also has trouble holding position when using when using GPS.
looking forward to the inflight calibration in the next release.