mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 19:31:15 +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:

committed by
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