atan range for orientation fixed

orientation range changed from -pi/2 ~ pi/2 to -pi/2 ~ 3pi/2, covering
the whole 2pi space now.