mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-31 15:15:07 +03:00 
			
		
		
		
	Updated interfaces and sensors
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
						
							bfdd2c37c0
						
					
				
				
					commit
					90524273ec
				
			| @@ -77,7 +77,7 @@ float Rotary::rel_rad() | ||||
|     return Rotary::rel_deg() * M_PI / 180.0; | ||||
| } | ||||
|  | ||||
|  float Rotary::getValue() | ||||
|  float Rotary::getAngle() | ||||
|  { | ||||
|      return Rotary::abs_value(); | ||||
|      return Rotary::abs_deg(); | ||||
|  } | ||||
|   | ||||
| @@ -30,7 +30,7 @@ | ||||
| #include <mraa/aio.hpp> | ||||
|  | ||||
| #include "rotary.hpp" | ||||
| #include <interfaces/iRotaryAngle.hpp> | ||||
| #include <interfaces/iAngle.hpp> | ||||
|  | ||||
| namespace upm { | ||||
|  | ||||
| @@ -60,7 +60,7 @@ namespace upm { | ||||
|  * @image html rotary.jpg | ||||
|  * @snippet rotary.cxx Interesting | ||||
|  */ | ||||
| class Rotary : virtual public iRotaryAngle { | ||||
| class Rotary : virtual public iAngle { | ||||
|     public: | ||||
|         /** | ||||
|          * Rotary angle sensor constructor | ||||
| @@ -115,7 +115,7 @@ class Rotary : virtual public iRotaryAngle { | ||||
|          * | ||||
|          * @return rotation value. | ||||
|          */ | ||||
|         virtual float getValue(); | ||||
|         virtual float getAngle(); | ||||
|  | ||||
|         std::string name(){ return "Rotary Angle Sensor";} | ||||
|     private: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user