Disconnected wires & Error 82

I just bought an e6 project car. When I test drove the car, all worked as expected. Trailered it about 300 miles home and now I’m getting Error 81 & 82. 81 was sporadic and I checked all the motor connections and cleaned them. I’m now getting no speed recorded on the dash and only error 82. Any ideas?

I also found two disconnected wires that are in the bundle stemming off the accelerator pedal. One is green/yellow and one is orange/black. Any idea what these are? I haven’t been able to locate these in the service manual. Picture attached.