I have 2 problems I need help with. First one is the pulsing of thrust. I’ve found a section in Flying 101 · PX4 v1.9.0 User Guide that mentions it might be related to Land Detector configuration, however I have no idea what to change and how to safely test my changes afterwards.
Which leads me to the second problem - the drone only wants to fly up! How do I make it descend? I was able to “land” by a pure luck - when switching to Stabilized mode the motors went to minimum thrust so by switching back and forth I was able to land. I have FrSky Lite, mode 2, both stick autocenter by itself.
I’ve gone several time over the px4 and qgc docs now. From the beginner point of view, I would appreciate a more step by step approach that would lead me to the first fight.
I have also found third problem: at 29:24 Land mode has been activated but there was no change from previous Loiter mode behavior (is it Loiter or Hold? Hold is much better name btw). Actually there are more strange things - in Land, there appears to be some Altitude Setpoint at 0m above sea - I have no idea why.
In graph Local Position Z I see that the Z setpoint started going down after engaging Land mode but the estimated Z was going still up despite the setpoint going down. This graph is most telling I think. Once I switched to Stabilized, the free fall started. When going back to Hold/Loiter, the Z setpoint kept going down but the estimate didn’t. At all times the estimate seems to correspond with what I saw was happening.
I’d appreciate any advice. What is the simplest test one should do first? You know, something like take off and land again immediately. What is the correct way to do this? How do you debug problems like the ones described above?
It periodically enters “ground_contact” while it should not and at the end fails to enter “ground_contact” and jumps right into “maybe_landed” without going through “ground_contact” first which according to Land Detector Configuration · PX4 v1.9.0 User Guide should not do.
I believe I can partially fix this by changing the value of MPC_THR_HOVER from the default 50% to 25% as that corresponds to the hover thrust I am seeing in the log. That should preclude the “ground_contant” states.
However, until I know how to reliably land, I am afraid of testing it.
My conclusion was that the Position controller has never been active because it was switching between taking off and landing all the time. So once I fixed the misdetection of ground contact, everything started to work.
There is still stuff I find strange in the logs (or rather what the visualization tools are showing me) but it flies so the rest will follow as well.