A production wide-range air-fuel ratio (AFR) control algorithm was developed for direct injection gasoline engines to minimize emissions. The algorithm uses a hybrid state estimator and time-based controller to account for physical engine effects and sensor dynamics. It estimates control errors using a model that accounts for transport delays and sensor characteristics. A gain-scheduled PI controller then corrects fuel injection to reduce errors. The algorithm also adds perturbations to optimize catalyst efficiency and supports calibration. Testing on a 1998 vehicle met Euro IV emissions standards with low hydrocarbon, carbon monoxide, and nitrogen oxide levels.