A state machine architecture for aerospace vehicle fault protection