Buffered drive

Questions about using encoders with the Roboclaw product line
Post Reply
dpa
Posts: 5
Joined: Tue Aug 30, 2016 11:57 pm
Buffered drive

Post by dpa »

I have 2 questions about buffered drive commands:
[*] Is there any way (including officially non-documented :-) to get from the buffer which command is being executed right now? I know I can get the number of commands in the buffer that are waiting for execution, but that is not what I need...
[*] Am I correct that if I mix buffered and non-buffered drive commands then issuing any non-buffered command will immediately terminate any buffered command being executed and clears the buffer?
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Buffered drive

Post by Basicmicro Support »

1. No, there is no way to get the actual command that is executing. You have to keep track of what commands you buffered and then you can use the current number from the GetBuffers command to determine what command is executing.

2. Yes. non-buffered commands will immediately clear that motors buffer and start executing the new command.

Post Reply