Tilt underwater

From your description of what you want it seems like you don't care which way the frame is tilted as long as it is not tilted too much in any direction, is that correct?

If so, then can I make the very simplistic suggestion that you just report the maximum absolute reading?
E.g. roll is 5 degrees, pitch is -15 degrees, so you report 15 degrees.