Only try to calculate the averages if the size of array is wider than the window
Repair the average angle arrays
Unit test for PilotFlying multistate
SpeedbrakeSelected for A340