Command to read both speeds at once

General discussion of using Roboclaw motor controllers
Post Reply
britonet
Posts: 7
Joined: Thu May 16, 2019 7:00 am
Command to read both speeds at once

Post 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.
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: Command to read both speeds at once

Post 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.
britonet
Posts: 7
Joined: Thu May 16, 2019 7:00 am
Re: Command to read both speeds at once

Post by britonet »

1) My bad, I fixed the instruction

2) Works very well!!!

Post Reply