flight autocentre

I’m trying to make a racinf game with flying vehicles as of right now, and need help with a system that automatically causes the vehicle to point with 0 roll or pitch after it comes out of a corner or flips up. the vehicle is hovering so will automatically pitch and roll depending on if its going over a hill