How could extension cord detection be implemented in Tesla Roadster?
The car can draw a variable amount of current. By measuring how much the voltage changes at two different current levels, it can distinguish between low source voltage (low mains voltage) and high source impedance (small-gauge extension cord).