A new approach to keeping control of ship heading is presented,which uses a primary filter and a secondary filter. Computer simulation results demonstrate that this heading keeping autopilot has a very high precision for heading keeping under rough circumstances.