![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				VIEW_EULER coords
			 
			
			
			In an experiment I am working on, we have objects arranged in a circle around the subject.  Part of the experiment requires that the subject face certain objects while wearing the HMD but with the display turned off.  We then log the VIEW_EULER coordinates to a file and later need to determine how close the subject was from looking straight at the object (the yaw is the important angle in this case) 
		
		
		
			The problem I am running into, is that the yaw angles recorded seem to wrap around, or get counted from different axes, depending on where I am. I am only looking at the yaw. Test data shows the angles of the objects starting from straight ahead and going around clockwise: Object 1: 2 degrees Object 2: 48 Object 3: 85 Object 4: 40 (180-40 = 140) Object 5: 6 (180-6 = 174) Object 6: -30 (180+30 = 210) Object 7: -76 (180 + 76 = 256) Object 8: -44 (360 - 44 = 316) I hope I am making sense... I have attached the log file, which logged multiple measurements of each object.  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Hi, 
		
		
		
		
		
		
		
		
	
	I've never experienced this problem before. Which version of Vizard are you running? Have you tried just retrieving VIEW_YAW: Code: 
	yaw = viz.get(viz.VIEW_YAW) Code: 
	import math look = viz.get(viz.VIEW_LOOK) euler = math.atan2(look[0],look[2]) * (180.0/math.pi)  | 
![]()  | 
	
	
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  |