A hybrid controller for safe and efficient longitudinal collision avoidance control