josepvr, you have a number of solutions
1. You can use 3-degree or 2-degree accelerometer while vehicle is not moving for attitude detection
2. you can use two GPS recievers: one on the front and one on the back of vehicle, and use it's solution to get a pitch angle
3. you can use information...