Autonomous formation flying: unified control and collision avoidance methods for close manoeuvring spacecraft