fixed angle measurement code