guglie
(Guglie)
October 18, 2018, 12:42pm
4
@Leonardthall gave me a very useful insight here
This appears to be caused by the copter not being levelled correctly.
The loiter controller see’s the error in level as an external force and the I term builds up to hold against that force. However when the aircraft heading moves the loiter controller continues to lean against what it believes to be an external force. Because this force is not external but an internal level offset that moves with the heading of the aircraft the I term buildup is now incorrect and must adjust to the new orienta…
Plotting the roll and pitch we can see that the roll and pitch are non zero when the copter is holding position. (But they are zero on arming and takeoff)
I’ll make new tests trying to remove that offset, thanks!