2018-06-20 18:27:59 +03:00
|
|
|
/*
|
|
|
|
|
* Author: Mihai Stefanescu <mihai.stefanescu@rinftech.com>
|
|
|
|
|
* Copyright (c) 2018 Intel Corporation.
|
|
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* This program and the accompanying materials are made available under the
|
|
|
|
|
* terms of the The MIT License which is available at
|
|
|
|
|
* https://opensource.org/licenses/MIT.
|
2018-06-20 18:27:59 +03:00
|
|
|
*
|
2019-07-30 19:41:32 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-06-20 18:27:59 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
namespace upm
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief Interface for Rotary Angle sensors
|
|
|
|
|
*/
|
2018-07-26 18:04:31 +03:00
|
|
|
class iAngle
|
2018-06-20 18:27:59 +03:00
|
|
|
{
|
|
|
|
|
public:
|
2018-07-26 18:04:31 +03:00
|
|
|
virtual ~iAngle() {}
|
2018-06-20 18:27:59 +03:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get rotation value from sensor data.
|
|
|
|
|
*
|
2018-07-26 18:04:31 +03:00
|
|
|
* @return rotation value in degrees.
|
2018-06-20 18:27:59 +03:00
|
|
|
*/
|
2018-07-26 18:04:31 +03:00
|
|
|
virtual float getAngle() = 0;
|
2018-06-20 18:27:59 +03:00
|
|
|
};
|
|
|
|
|
}
|