Ssc32 query commands

I have 2 analog servos, channel 1 and channel 5

When I have just servo (channel 1) moving…

Q command “Q5 Q1” is returning 43 for both servos while channel 5 has not moved.

Shouldn’t I be getting just a 43 for servo channel 1

Is channel 5 returning its last status and if so, would it not be a 46

When servo channel 1 move is complete then 46 is returned.

Any insight is appreciated, has to be something simple.

Looking at the manual, I don’t think it can poll two servos at once in a single command. You might have to poll servo 5, take that infomation and store it in a variable, and then poll servo 1 and get it’s data.

You know you are correct romshark, I should have looked at the manual. Q is a single query.

I use QP to return multiple pulses and just assumed that Q worked the same way and that I was doing something wrong.

Thanks

The Q command returns the status of an entire group move, not a single servo. It always returns the status of the last group move received by the SSC-32. Thus, if you send a command to move servo 1 followed by a separate command to move servo 2, the Q command will return the status of the move for servo 2. The Q command does not take an argument.

There is not (currently) a command to ask whether a specific servo is still in motion, or to query the status of group move commands besides the most recent.

Mike

Ok that makes sense.
This seems to clear up my questions and understanding of Q

Thanks Mike