A Guidance and Navigation System for Automatic Stationkeeping in Earth Orbit