mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 15:15:07 +03:00 
			
		
		
		
	Modified all iDistance sensors to return float.
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
		 Serban Waltter
					Serban Waltter
				
			
				
					committed by
					
						 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
			
				
	
			
			
			 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
						parent
						
							ddcc4f467e
						
					
				
				
					commit
					864e1eb073
				
			| @@ -48,7 +48,7 @@ int MB704X::getRange() | ||||
|     return mb704x_get_range(m_mb704x); | ||||
| } | ||||
|  | ||||
| int MB704X::getDistance() | ||||
| float MB704X::getDistance() | ||||
| { | ||||
|     return getRange(); | ||||
| } | ||||
|   | ||||
| @@ -90,7 +90,7 @@ namespace upm { | ||||
|          * | ||||
|          * @return Distance to the object in cm | ||||
|          */ | ||||
|         virtual int getDistance(); | ||||
|         virtual float getDistance(); | ||||
|     protected: | ||||
|         // mb704x device context | ||||
|         mb704x_context m_mb704x; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user