Commit f13f350c authored by Sergi Hernandez's avatar Sergi Hernandez

Made public the start() and stop() functions.

parent 410a20a0
......@@ -236,9 +236,7 @@ void CDynamixelSlave::dynamixel_loop_v1(void)
if(id!=0xFE)
this->send_status_packet(this->slaves[i].id,dyn_no_error,0,NULL);
break;
case dyn_read: std::cout << "length: " << this->get_read_length(data) << std::endl;
std::cout << "address: " << this->get_read_address(data) << std::endl;
error=this->slaves[i].on_read(this->get_read_address(data),this->get_read_length(data),read_data);
case dyn_read: error=this->slaves[i].on_read(this->get_read_address(data),this->get_read_length(data),read_data);
if(this->return_level!=no_return && id!=0xFE)
{
if(error==dyn_no_error)
......
......@@ -132,16 +132,6 @@ class CDynamixelSlave
*
*/
void send_status_packet(unsigned char id,unsigned char error, unsigned short int length, unsigned char *data);
/**
* \brief
*
*/
void start(void);
/**
* \brief
*
*/
void stop(void);
/**
* \brief
*
......@@ -297,6 +287,16 @@ class CDynamixelSlave
*
*/
void get_return_level(return_level_t level);
/**
* \brief
*
*/
void start(void);
/**
* \brief
*
*/
void stop(void);
/**
* \brief
*
......
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