Optimal measurement and velocity correction programs for midcourse guidance