You can see that the pitch is subject to blue altitude control, with positive and negative peaks that make no sense in aviation.
In the last image, the flare is harmful because it knocks the nose down from a positive, stable attitude, and I’ve previously burned out a €120 ESC that reached 80 amps when it hit the ground after pitching during the flare; isn’t it possible to create better code? There was a person on GitHub who claimed for years that he had better code for the flare and approach, but unfortunately, I don’t know how to code and I’m also a bit clumsy with links.