Page 1 of 1

Command to read both speeds at once

Posted: Sat Jun 29, 2019 4:17 am
by britonet
I am using command 18 and 19 to read the QPPS speeds of the Roboclaw 2x30A

I was wondering if there is a command to read both speeds in one shot?

I tried command 79, but 1) it is not working, and 2) command 79 is for instantaneous speeds.

Re: Command to read both speeds at once

Posted: Mon Jul 01, 2019 9:47 am
by Basicmicro Support
1. How is it not working? I'll need to see your code and or the response data from the command. Keep in mind the instant speed is calculated every 1/300th of a second. It is multiplied by 300 to give a speed in counts per second but this will always cause an aliasing effect(eg the speed will always be a multiple of 300).

2. Yes, There is a command to get both average speeds. Command 108. Same format as the GETISPEEDS command. It was added in the last release. It will be documented when the new manual is released.

Note GETSPEEDS will get an average speed value for the previous 1 second.

Re: Command to read both speeds at once

Posted: Thu Jul 04, 2019 7:40 am
by britonet
1) My bad, I fixed the instruction

2) Works very well!!!