This is after I removed motor 4 and installed it again. I think it is even worst now.
https://www.dropbox.com/s/h4sylh5bx53nuor/00000170.BIN?dl=0
The flight seemed fine. Still twitches a little bit on its own. Probably that motor 4. I will check if the frame is level tomorrow. Now that everything is working I will start converting to carbon. That should also help I think because it will be very stiff.
I think I am doing something wrong with the mission planning. It isn’t turning towards the middle. I created a circle and made every second waypoint do_set_roi and moved each point into the middle. Looking at this tutorial that is the mistake I made. I should just set the a single ROI and if I set it again it will disable it so I will try tomorrow with a single ROI.
I also received my range finder. The TF-luna
https://amzn.to/3pVJFA4
I found links about how to set it up using I2C. I had to swap wires 2 and 3 for it to work. 2 goes to pin 3 and 3 goes to pin 2.
It is reading a value and I believe I configured everything so that it will actually activate.
This is all my parameters now
On this page Simple Object Avoidance — Copter documentation it says to set PRX_TYPE to 4 so that it will work as a proximity sensor. If I set it to 4 then there aren’t any rangefinder readings on the status tab. If I set it to 0 then I get values again. So not sure if I should set it or not.