Skip to content
Snippets Groups Projects
Commit 6f1777a8 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Made public the to_angles() and to_speeds() functions.

parent 2e269b80
No related branches found
No related tags found
1 merge request!3Add support xm 540
......@@ -125,16 +125,6 @@ class CDynamixelMotor
*/
bool enabled;
protected:
/**
* \brief
*
*/
double to_angles(unsigned int counts);
/**
* \brief
*
*/
double to_speeds(unsigned int counts);
/**
* \brief
*
......@@ -161,6 +151,16 @@ class CDynamixelMotor
*
*/
void set_control_mode(control_mode mode);
/**
* \brief
*
*/
double to_angles(unsigned int counts);
/**
* \brief
*
*/
double to_speeds(signed int counts);
/**
* \brief
*
......@@ -170,7 +170,7 @@ class CDynamixelMotor
* \brief
*
*/
unsigned int from_speeds(double speed);
signed int from_speeds(double speed);
/**
* \brief
*
......
......@@ -82,7 +82,7 @@ unsigned int CDynamixelMotor::from_angles(double angle)
return counts;
}
unsigned int CDynamixelMotor::from_speeds(double speed)
signed int CDynamixelMotor::from_speeds(double speed)
{
unsigned int counts;
......@@ -105,7 +105,7 @@ double CDynamixelMotor::to_angles(unsigned int counts)
return angle;
}
double CDynamixelMotor::to_speeds(unsigned int counts)
double CDynamixelMotor::to_speeds(signed int counts)
{
double speed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment