A serving detective chief inspector with a history of blackouts who killed a pedestrian after passing out at the wheel has been jailed for three years and seven months.