Using a Prop to control the Robo Claw motor controller
charleyshf
Posts: 165
Hello,
I am hoping that someone may have used this motor controller with the prop. I haven't seen anything posted on the forums, but the problem I am having is this:
The motor controller is set to packet mode (I need this mode to read wheel encoders which are interfaced to the motor controller).
The manual for the motor controller states:
CRC Checksum Calculation:
All packet serial commands use a 7 bit CRC checksum to prevent corrupt commands from being
executed. Since the Robo Claw expects a 7bit value the 8th bit is masked. The basic CRC checksum is
calculated as follows:
Address + Command + Data = Checksum
To mask the 8th bit you use can a simple math expression called AND as shown below:
Serout P15, i19200, [128, 0, 127, (255 & 0X7F)]
I am using the Extended_FDserial object from the obex along with my program which is attached:
What I cannot figure out is how to get this to work with the roboclaw, you will see by my code I have tried a few different things, and have not had any luck.
I would appreciate any help, thanks
I am hoping that someone may have used this motor controller with the prop. I haven't seen anything posted on the forums, but the problem I am having is this:
The motor controller is set to packet mode (I need this mode to read wheel encoders which are interfaced to the motor controller).
The manual for the motor controller states:
CRC Checksum Calculation:
All packet serial commands use a 7 bit CRC checksum to prevent corrupt commands from being
executed. Since the Robo Claw expects a 7bit value the 8th bit is masked. The basic CRC checksum is
calculated as follows:
Address + Command + Data = Checksum
To mask the 8th bit you use can a simple math expression called AND as shown below:
Serout P15, i19200, [128, 0, 127, (255 & 0X7F)]
I am using the Extended_FDserial object from the obex along with my program which is attached:
What I cannot figure out is how to get this to work with the roboclaw, you will see by my code I have tried a few different things, and have not had any luck.
I would appreciate any help, thanks
Comments