autopilot [autopilot ticks]
This command sets autopilot ticks.
This will make your ship stop automatically after that many movement ticks. So multiplying your speed (after your acceleration) by your autopilot ticks tells you how far you will go before your ship automatically stops. It is advisable to keep that number lower than the distance between your ship and whatever it is facing.