|
Hank,
Glad it works for you. Nice job. You might be able to reduce the hesitation by changing your code a bit. The serial link between the BasicStamp and the WheelCommander is slow, due to limitations in the BasicStamp itself. So, you should only send updates to velocity when the velocity command needs to change value; if it is always 30, then you only need to send it once after each time you stop the robot. Further, you only need to send the set rotation rate to the WheelCommander when its value changes. If the value of the velocity and/or rotation rate does not change for a while, your program is wasting time and bandwidth of the serial link repeating itself; just send them when the change and then send a Go to make them take effect. Only send them when they change values. -Pete Hank van Buuren wrote:
|