Hardcastle and McCormick

Hardcastle & McCormick was a mostly lighthearted crime series in which a judge (Harcastle) enlists an ex-con racing driver (McCormick) to use an experimental car to catch criminals. It ran on ABC from 1983 to 1986 and was one of a raft of fairly similar action-with-humor series from The A-Team creator Stephen J. Cannell.