Intelligent fault diagnosis and condition control using an adaptive fuzzy logic controller