Feature Request: Comprehensive status read?
Feature Request: Comprehensive status read?
When running multiple RoboClaws on a bus, and wanting a reasonably high status update rate, it would be convenient if there was a command that would return all the "pertinent" status information. Something like:
GET_ALL_STATUS:
return:
M1 status bits (4B)
M2 status bits (4B)
ENC1 position (4B)
ENC2 position (4B)
ENC1 velocity (4B)
ENC2 velocity (4B)
M1PWM (2B)
M2PWM (2B)
M1CURRENT (2B)
M2CURRENT (2B)
TEMP1 (2B)
TEMP2 (2B)
BAT_VOLT (2B)
LOGIC_VOLT (2B)
So, everything that changes at runtime and that I might want in a "status" UI, but none of the static configuration bits. The main gain here is to avoid many round trips on the bus per controller; a secondary gain would be slightly simpler logic in the host code but that's not as important.
GET_ALL_STATUS:
return:
M1 status bits (4B)
M2 status bits (4B)
ENC1 position (4B)
ENC2 position (4B)
ENC1 velocity (4B)
ENC2 velocity (4B)
M1PWM (2B)
M2PWM (2B)
M1CURRENT (2B)
M2CURRENT (2B)
TEMP1 (2B)
TEMP2 (2B)
BAT_VOLT (2B)
LOGIC_VOLT (2B)
So, everything that changes at runtime and that I might want in a "status" UI, but none of the static configuration bits. The main gain here is to avoid many round trips on the bus per controller; a secondary gain would be slightly simpler logic in the host code but that's not as important.
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: Feature Request: Comprehensive status read?
I will look at it. We are near the point were adding new features would require removing older ones so it may not be possible.