The TPS (throttle position sensor) is located on the throttle bodies and is connected to the shaft the butterflies are mounted on. I am not directly looking at my sled so can't be any more detailed. It uses a 0-5 volt output depending on the position of the butterflies in the the throttle bodies. The ecu is calibrated so that it knows how long the to fire the injectors for the said amount of air flowing into engine, hence getting the right AFR. Very important piece of equipment as without it or with a faulty one, the ECU doesn't know when throttle is open or to what point it is open. This is why it can create a bog. They hardly ever just stop working but they will have a dead spot somewhere in their travel and rob ecu of info. So if it has a dead spot just above idle, you would introduce a rush of air into engine before ecu knew it and hence create more air in the burn process and have a lean bog situation. Then when TPS started working again, it would let the ecu catch up and run correctly.
The TSS (throttle safety switch) is located in the throttle block on the handle bars. If ECU senses that the TPS is not at idle but the TSS is in idle position, it will ignore the TPS. This way if the butterflies in the throttle bodies are stuck, say from ice build up, and you let off throttle to idle point, the sled will still go to idle instead of being a stuck throttle nightmare. But if this sensor go on the fritz it can send ECU into safety mode when you are actually on throttle. Hope this all makes sense. If not, let me know and I can try to be more specific.
Aaron