Time varying potential function control for constrained attitude tracking