I don't know about the ones in Teslas, but in gas cars with throttle-by-wire (which is pretty common after 2000-2005 or so), the there are three pots on the pedal, and the ECU will reduce power, or cut power entirely, if all three signals don't agree with each other.
My 2002 Corvette has 3 pots...