I accidentally drove over a curb and now my check engine light is on and the D for drive light is blinking. It drove it to a garage and it seemed like it wasn't accelerating properly. Just trying to find out what I did

And they said it was the knock senser is it possible I could repair it my self and reprogram the computer ? And how could I do this?

I would have seen if the lights or flashers were left on, it was dark when I got home last night.