Fault detection algorithm design of satellite inflight control is important for most remote sensing satellites. The responsibility of a satellite attitude control system always keeps the satellite in a stable mode. A satellite control mode contains standby, imaging and detumbling modes. Before we start imaging, we used to prepare an attitude control system to change satellite angles according to payload camera planning schedule to shoot a specific area of interest. After imaging is complete, the attitude control changes satellite angles back to nadir (zero tilting angels). Some control problems may cause failures which put the satellite in a detumbling mode due to accumulated torque on reaction wheel of the satellite. Artificial intelligent design algorithm of particle swarm optimization (PSO) is proposed to control the satellite in real-time mode, which decreases the angular velocity received from the satellite. This approach calculates the difference between the real-time measurement and the designed angular velocity (∆θ) within the satellite communication session time. The Matlab customization function implements PSO controller. The mathematical model of satellite attitude control system has been designed according to the satellite dynamics and kinematics laws. The approached mathematical model is implemented using Simulink Matlab tools.