angle conversion fixed using derivative magnitude