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

Solved a problem in the execution od motion sequences in the ptu_d46 and...

Solved a problem in the execution od motion sequences in the ptu_d46 and dynamixel_motor_control node. The sequence continue after the stop function was called.
parent 99e3a106
No related branches found
No related tags found
No related merge requests found
...@@ -692,6 +692,9 @@ void *CDynamixelMotorGroup::sequence_thread(void *param) ...@@ -692,6 +692,9 @@ void *CDynamixelMotorGroup::sequence_thread(void *param)
mtn_seq->stop(); mtn_seq->stop();
mtn_seq->sequence_error_msg="Motion sequence stopped by user"; mtn_seq->sequence_error_msg="Motion sequence stopped by user";
mtn_seq->sequence_current_step=0; mtn_seq->sequence_current_step=0;
to=-1;
if(!mtn_seq->event_server->event_is_set(mtn_seq->sequence_complete_event_id))
mtn_seq->event_server->set_event(mtn_seq->sequence_complete_event_id);
break; break;
case 3: /* resume sequence */ case 3: /* resume sequence */
mtn_seq->sequence_current_step++; mtn_seq->sequence_current_step++;
......
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