Automatic spin detection and recovery for small aircraft