Autonomous Controls Algorithmfor Formation Flying Of Satellites