Simulate the electric trim function of Boeing 787