Flight control firmware