moved radar code from header to cpp