I recently got a chance to replace my Throttle Position Sensor (TPS). This is fastened to the side of the Williams WM540 Electronic Pedal Assembly, and tells the engine what the throttle position is. If it fails, you can idle just fine, and that's all.
Since mine probably was original to the 1999 build date of the truck, I decided to both replace it and pick up another as a spare that would be tucked into my toolbox. I ran into a GOTTCHA that made the task interesting, and worth passing on to to others with a Freightliner.
The TPS is mounted on the side of the pedal assembly, and replacement is a lot easier if the entire throttle assembly is removed for access..
The TPS mounts to the throttle pedal with two screws, while a rectangular tang slides into the throttle to operate the sensor. When you install one, you line up the tang, and slide the sensor into place - then you rotate - or try to rotate - it so you can install the screws.
Panic! It stops about 10 degrees from the needed position.
The GOTTCHA is that the throttle pedal assembly has a cylindrical bore that the sensor slides into. This bore has four small bumps (about 0.020") in the bore. The sensor has a cylindrical section that slides into the pedal assembly, and this section also has four bumps (again about 0.020"). When you try to turn the sensor to the correct position, the bumps strike each other, and you stop turning.
The trick is to keep turning until you can insert the screws. The bumps on the sensor deform, and keep the sensor aligned in the correct axis.
I verified this by looking closely (magnifier) at my removed sensor, and at both the new sensors. The old one's bumps were deformed, the new one's were not.
The end result is that the sensor works perfectly.
Old Sensor:
New Sensor: