Sterling Anderson, Tesla Motor Inc.’s director of autopilot programs since November 2015, has left the Palo Alto, California-based maker of electric cars, according to a person familiar with the matter. Tesla announced Tuesday that it hired Chris Lattner as its vice president of autopilot software.