Command to read both speeds at once
Command to read both speeds at once
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.
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.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Command to read both speeds at once
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.
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
1) My bad, I fixed the instruction
2) Works very well!!!
2) Works very well!!!