Used encoder distance instead of time for deciding when to stop driving during autonomous