added a new way to reset the angle sensor