Commit 4defb5a5 authored by andz's avatar andz

-- Resolved enum return value Errors

parent f179bd6b
......@@ -116,7 +116,7 @@ uint16 CRotor::getActualElevation() const
/// @return Error Code
///
rotorError CRotor::setAzimuth(uint16 pAzimuth)
CRotor::rotorError CRotor::setAzimuth(uint16 pAzimuth)
{
if(pAzimuth >= AZIM_MIN && pAzimuth <= AZIM_MAX)
{
......@@ -137,7 +137,7 @@ rotorError CRotor::setAzimuth(uint16 pAzimuth)
/// @return Error Code
///
rotorError CRotor::setElevation(uint16 pElevation)
CRotor::rotorError CRotor::setElevation(uint16 pElevation)
{
if(pElevation >= ELEV_MIN && pElevation <= ELEV_MAX)
{
......@@ -156,7 +156,7 @@ rotorError CRotor::setElevation(uint16 pElevation)
/// @return Error Code
///
void CRotor::readRotSensors()
CRotor::rotorError CRotor::readRotSensors()
{
m_uActualAzimuth = (uint16)(readADC(AZIM_POT)/AZIM_DEG);
m_uActualElevation = (uint16)(readADC(ELEV_POT)/ELEV_DEG);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment