Sorry, I’m the autolanding guy;
please understand that:
1 - for me is difficult to write and understand in English, so I don’t know if it’s understood what I write
2 - I’m not very good to summarize
3 - I have no programming experience
I’ve been doing thousands of autolandings for several years, the problems are:
1 - Pitch shouldn’t be directly controlled by the hight. When the hight changes due to GPS recalculations or other factors, I don’t know because I don’t know the altitude controller block diagram or loop controll, the pitch undergoes sudden changes.
2 - Similar to 1, during the flare, the pitch follows a command probably directly from the hight control. Therefore, at the moment of flare, the aircraft undergoes an attitude imbalance that is difficult for the vertical speed controller, to recover from. At the moment of flare an idea could be that the pitch must remain in the last command, then the vertical speed control intervenes. Since these are very very low-inertia aircraft, the flare must be a not very long time fase like real general aviation planes, because you have no energy margin.
All this is not caused directly by the rangefinder, praise also to whoever wrote the rangefinder library, which is exceptional at interpreting and using it even when the terrain below is complex or rough, but by the height and pitch control algorithm. For example there is another strange things in hight controller that I never reported, when I incline more that about 45 degree the roll in CRUISE mode, the hight controller commands a descend and full throttle probably for safety reasons, but in fact the plane is very energetic healty because has speed and low angle of attack, but let’s postpone this to the future. Please, do not abandon the altitude control code, because this firmware, in its entirety, has achieved exceptionality, for example whoever works on EKF3 is genius, as a proof of this, with older releases I sperimented the airspeed sensor failure with a dive, a similar incident was occurred with new Boeing series with sensors failure, instead my new failures, including GPS jamming, lead to a quiet EKF lane switch that can maintain the plane in flight and subsequent recovery, another example the NAVL1 controller was written by a true genius, etc. everything is incredible, but someone needs to get their hands on the altitude controller otherwise it’s a real shame like to have a Ferrari with a flat tire; I have some aircraft are in pause because attempting autolandings with them is harmful. In the past, I’ve burned out €120 ESCs, and when the firmware was between the version from years ago and before 4.6.3, pitch could arrive to reach the -20 degree flare caused the nose or landing gear to be destroyed, if equipped, this was corrected from 4.6.2 to 4.6.3
The people I was referring to who could help would be:
jschall seems to be very expert in planes hight controll algorithm, then rubenp02 AP_TECS: Fix flare height demand when using a rangefinder by rubenp02 · Pull Request #29230 · ArduPilot/ardupilot · GitHub
jknight100 ArduPlane Flare Height Cmd During AutoLand · Issue #26932 · ArduPilot/ardupilot · GitHub
But I’m not sure, as, as I said, unfortunately I can’t interpret their code proposals
Let’s comment on the logs:
1
1 - rangefinder intervenes perfectly, the pitch suddenly is commanded by almost the max, is not smooth to see in reality, I apologize but for now I have no video
2
2 - excuse me, now after posted, I see that the image has a white border down, due to bad for me paste in paint that I deemed to avoid correcting; switching in auto mode the hight controller commands rightly a change in altitude, but the pitch drops abruptly commanding about -6 degrees, not very delicate if it there were passengers, apart from that, this involves a fair loss of altitude much greater than what a gentle profile would require, in fact it is seen afterwards that it has to recover upwards this too sudden correction
3
3 - excuse image sovrapposizition, as I tell I’m not the best in screenshot and links; after some waypoints, the well scripted algorithm of landing, calculate the slope and he rightly realizes that the altitude is excessive and immediately orders a pitch down of about -15 degrees, and probably because of the previous overshoot request, the well working rangefinder asks for a pitch of 12 degrees; if the pitch requests had been a little gentler the result would have been less variable. Then the flare commands down resulting a brutal strike to terrain
4
4 - excuse image sovrapposition; at the same mode, the TECS.hdem has a request in a waypoint, could be reasonable for various reasons that I am unaware of, and the pitch commands an excursion between approximately -3 and 10 degrees, not causing any significant variation in the altitude profile, but an imbalance in the attitude
5
5 - in flare probably the plane arrived with an offset, also with probably not bad tuned constants that I tested with probably hundreds of flights, of altitude of about 30/40cm, because if I don’t remember wrong there was a quite turbulence, the TECS.hdem request a variation of pitch from an attitude of about 6/7°, to about 2/3°, but after a very short time, probably only the altitude variation controller is in action, which I didn’t trace to avoid confusion, it commands the maximum pitch; depending on the case this flare causes a difficult to set clean recall also changing parameters with many tests; At the moment of flare, the aircraft undergoes an attitude imbalance that is difficult for the vertical speed controller, to recover from. At the moment of flare an idea could be that the pitch must remain in the last command, then the vertical speed control intervenes. Since these are very very low-inertia aircraft, the flare must be a not very long time fase like real general aviation planes, because you have no energy margin. So when the motor shut off, the plane hand no energy to recover suddenly attitude, also if the speed scaler was very very very well scripted and runs very well commanding very well calculated excursions to the plane at very low speeds
p.s. It took me about half a day to write and try to translate this post well
the LOG: log about TECS.hdem HELP ME poor RC flight enthusiast