Hi Guys,
as promised I posted short video showing results of RTH testing yesterday.
Here it is:
http://www.youtube.com/watch?v=j015U0MTptE&Hear also sound of engine, servos and the wind, it's interesting!
As I already wrote, RTH itself works fine, but when home is reached, for short time engine slows down, but then speeds up again and plane starts pitching down at high throttle so is gaining too high speed and loosing too much height. If I wouldn't save it manually, it would have crashed within few seconds.
In the software I commented the line which disarms when the home is reached, the rest is unmodified.
Accelerometer is calibrated on the ground such, that if I fly in ACC mode, plane flies perfectly without pitching down so this must be caused by influence of navigation code.
Maybe ACC calibration even more "nose up" can help but anyway I'd like to know the following:
Is threre in the current code active some control of height based on GPS data after home is reached?
Is there any control of speed? (OK, I know that we know nothing about the wind...

At least check for maximal safe speed.)
At least simple idea for possible "improvement" - what about controlling engine thrust depending on elevator position?
If elevator is "UP" throttle would proportionally grow, if it's "DOWN" engine would stop. This would so-so control the speed...
Elevator itself could be controlled via PID (maybe existing code for multicopters could be used)? from GPS height
If my ideas are unusable, please excuse, I'm not coder...
Anyway I'd say that RTH is a working code, Patrik, isn't it?

Regards
Roman