Closed iydv closed 7 months ago
I have conducted a test similar to #190 and resulting debug log shows that FSU speed handling part still works fine but empty mpExRcsIncrementMove
is no longer sent when trajectory is finished.
20231116T135527_motoros2_debug_log.txt
Hi @iydv Good catch. I definitely missed that during testing.
This won't work for a multi-group system. The hasUnprocessedData
would get cleared when calculating for R2.
I think we can simply move the hasUnprocessedData = FALSE;
up a few lines so that it outside of the for-each-group loop.
What do you think?
Yes, you are right, I forgot about the multi-group system. I guess it should be moved here .
Looks good to me. My system is currently configured for single-group. But I should be able to reconfigure it on Wednesday for a quick test.
Fix for #190 . Currently,
hasUnprocessedData
is never reset after the queue is fully processed insideRos_MotionControl_IncMoveLoopStart
, which means that empty queue is constantly being read and zero pulse increment is constantly being sent bympExRcsIncrementMove