
Dunning-Kruger

Hello, so I have set up a sabertooth 2 x 12 dual (using serial) motor controller with a Movement Panel and speech recognition to control my robot... So far so good... works great... However using the commands... forward, reverse, left and right speech commands only drive the motors at full speed (no matter what number I put in the command as a speed parameter)... So forward(100,2000) moves the robot forward for 2 seconds at the same speed as does forward(255,2000).... In other words I want to use the voice commands forward slow and forward fast, but I can get the speed to change under voice control... Any ideas what I am doing wrong?
A solution could be to use the SendSerial() commands for different speeds. But this is EZ-Robot, it should be easy
Another solution I thought of on my way home from work was to use a custom Movement Panel with script commands to set the sabertooth to the correct values depending on speed and direction. I haven't looked at writing the code for it or the calculations and variables required but it shouldn't be difficult.
Although wait for DJ (or someone else for that matter) to confirm or deny my suspicions before marking as solved or even getting too involved in any kind of coding - there may very well be a simple solution.
@rryerson - I assume DJ has already investigated all other avenues for the sabertooth control and none worked but it is possible I suppose. I haven't ever read anything about the other control methods so haven't a clue. However, my point was that scripts can be used with thee SendSerial() command to work the Sabertooth in simple serial mode. This is psudo code, I haven't a clue of the proper code but something like;
Code:
Which is full speed ahead on both motors. Change the 255 and 127 for lower values (not too low, it'll send it backwards) for slower speeds so;
Code:
Where $motor1 and $motor2 are calculated from the speed control on the custom movement panel.
Cheers
R