Flight control software and hardware