Program to measure lean angle on a motorcycle