This is my second attempt at posting this request. I tried to post pictures and as most of you probably already know, it the forum won’t let you on your first post. All of the typing for nothing .
The left track on my vehicle rotates slowely in reverse when I pick up the robot (no load). As a consequence the robot veers to the left so that I have to make constant corrections to keep it tracking straight. Any ideas on what could be wrong?
What range should I expect to get from the remote. When I first tried the robot I could control it 50ft away in a different room. Now I cannot get very good control at all in a different room.
Yep, they had to do some limitations with first postings and the like to help keep the spam under control.
May I assume you have the tritrack unit with a PS2 controller hooked up to a Basic Atom Pro? What program are you running? Maybe ps2a4wd1.bas? What switch settings do you have on the Sabertooth?
I have not used this program before, nor do I have a tracked robot, but I do have a rover and the control is more or less the same. So I am only guessing!
Things I might try include:
Minor update to the Normalize function. Near the end of this file is the function Normalize, which looks like:
Normalize
if NormalizeValue < (NormalizeNull-DeadBand) then
NormalizeValue = (127*NormalizeValue)/(NormalizeNull-DeadBand) MAX 127
elseif NormalizeValue > (NormalizeNull+DeadBand)
NormalizeValue = (127*(NormalizeValue-NormalizeNull)/(255-DeadBand-NormalizeNull) + 127) MAX 255
else
NormalizeValue = 127
endif
return
I would change the NormalizeValue = 127 to be 128 instead of 127. I doubt that this would make much of a change but you can try.
I might play with the calculations for what is going to be sent to the Sabertooth. In particular these lines:
'CALCULATE DRIVE SPEEDS FROM JOYSTICK POSITIONS AND SPEED LIMIT
ldrive=((lvert*GEAR) + 1500 - (GEAR *128)) ' Forward / backward
rdrive=((lhori*3) + 1500 - (3 *128)) ' steering
The change in 1 should now make such that these two variables should be 1500 at the center. They were off by hair as the normalize center for lvert and lhori would be 127. Not sure if that makes sense or not.
If still problem I would experiment with these two equations. For example maybe change the 1500 in the rdrive equation to 1495 or 1505. Does it get better or does it get worse. Try different values…