Software structure and sampling strategy for automatic target tracking with a phased array radar