Chris Lattner, the chief of Tesla’s autopilot software division who previously worked at Apple, announced he has quit after six months.