1111uint8_t Controller_::get_state (void )
1212{
1313 uint8_t value = 0 ;
14- this ->send (18 , this ->_data , 0 , true );
15- if (this ->recv (18 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
14+ this ->send (21 , this ->_data , 0 , true );
15+ if (this ->recv (21 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
1616 {
1717 read_le (&value, this ->_data );
1818 }
@@ -22,14 +22,14 @@ uint8_t Controller_::get_state(void)
2222void Controller_::set_state (uint8_t value)
2323{
2424 write_le (value, this ->_data );
25- this ->send (18 , this ->_data , sizeof (uint8_t ), false );
25+ this ->send (21 , this ->_data , sizeof (uint8_t ), false );
2626}
2727
2828uint8_t Controller_::get_mode (void )
2929{
3030 uint8_t value = 0 ;
31- this ->send (19 , this ->_data , 0 , true );
32- if (this ->recv (19 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
31+ this ->send (22 , this ->_data , 0 , true );
32+ if (this ->recv (22 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
3333 {
3434 read_le (&value, this ->_data );
3535 }
@@ -39,14 +39,14 @@ uint8_t Controller_::get_mode(void)
3939void Controller_::set_mode (uint8_t value)
4040{
4141 write_le (value, this ->_data );
42- this ->send (19 , this ->_data , sizeof (uint8_t ), false );
42+ this ->send (22 , this ->_data , sizeof (uint8_t ), false );
4343}
4444
4545uint8_t Controller_::get_warnings (void )
4646{
4747 uint8_t value = 0 ;
48- this ->send (20 , this ->_data , 0 , true );
49- if (this ->recv (20 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
48+ this ->send (23 , this ->_data , 0 , true );
49+ if (this ->recv (23 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
5050 {
5151 read_le (&value, this ->_data );
5252 }
@@ -56,8 +56,8 @@ uint8_t Controller_::get_warnings(void)
5656uint8_t Controller_::get_errors (void )
5757{
5858 uint8_t value = 0 ;
59- this ->send (21 , this ->_data , 0 , true );
60- if (this ->recv (21 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
59+ this ->send (24 , this ->_data , 0 , true );
60+ if (this ->recv (24 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
6161 {
6262 read_le (&value, this ->_data );
6363 }
@@ -67,27 +67,27 @@ uint8_t Controller_::get_errors(void)
6767
6868void Controller_::calibrate ()
6969{
70- this ->send (39 , this ->_data , 0 , true );
70+ this ->send (42 , this ->_data , 0 , true );
7171}
7272
7373void Controller_::idle ()
7474{
75- this ->send (40 , this ->_data , 0 , true );
75+ this ->send (43 , this ->_data , 0 , true );
7676}
7777
7878void Controller_::position_mode ()
7979{
80- this ->send (41 , this ->_data , 0 , true );
80+ this ->send (44 , this ->_data , 0 , true );
8181}
8282
8383void Controller_::velocity_mode ()
8484{
85- this ->send (42 , this ->_data , 0 , true );
85+ this ->send (45 , this ->_data , 0 , true );
8686}
8787
8888void Controller_::current_mode ()
8989{
90- this ->send (43 , this ->_data , 0 , true );
90+ this ->send (46 , this ->_data , 0 , true );
9191}
9292
9393float Controller_::set_pos_vel_setpoints (float pos_setpoint, float vel_setpoint)
@@ -98,14 +98,12 @@ float Controller_::set_pos_vel_setpoints(float pos_setpoint, float vel_setpoint)
9898 write_le (vel_setpoint, this ->_data + data_len);
9999 data_len += sizeof (vel_setpoint);
100100
101- this ->send (44 , this ->_data , data_len, false );
101+ this ->send (47 , this ->_data , data_len, false );
102102 float value = 0 ;
103103 this ->send (17 , this ->_data , 0 , true );
104- if (this ->recv (17 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
104+ if (this ->recv (17 , this ->_data , &(this ->_dlc ), this ->delay_us_value ))
105105 {
106106 read_le (&value, this ->_data );
107107 }
108108 return value;
109109}
110-
111-
0 commit comments