Commit 0309e944 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added read_register() and write_register() functions.

Modified the code to use this new functions.
parent 1428c642
This diff is collapsed.
......@@ -130,12 +130,12 @@ class CDynamixelMotor
* \brief
*
*/
double to_angles(unsigned short int counts);
double to_angles(unsigned int counts);
/**
* \brief
*
*/
double to_speeds(unsigned short int counts);
double to_speeds(unsigned int counts);
/**
* \brief
*
......@@ -151,6 +151,16 @@ class CDynamixelMotor
*
*/
void set_control_mode(control_mode mode);
/**
* \brief
*
*/
void read_register(TDynReg reg, unsigned int &value);
/**
* \brief
*
*/
void write_register(TDynReg reg, unsigned int value);
public:
/**
* \brief
......@@ -355,12 +365,12 @@ class CDynamixelMotor
* \brief
*
*/
unsigned short int get_punch(void);
unsigned int get_punch(void);
/**
* \brief
*
*/
void set_punch(unsigned short int punch_value);
void set_punch(unsigned int punch_value);
/**
* \brief
*
......
Supports Markdown
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