Maybe you could *revise* this 1968 "G-whiz" idea into an inclinometer SENSOR that provides input to your handheld to read and calculate the road angle from?
• source: Popular Electronics Magazine, Sept 1968:
Popular Electronics Magazine, September 1968