Problems with Right Left Move Adjusments

Hi, i have a "DiddyBorg Red Edition". I am pretty new to all this stuff and i am glad i got it running.

The problem atm is that if i hit the button to move straight forward, it moves a LITTLE bit to the left. So thats prolly up to my horrible robo building skills but i hope that there is a adjusment i can do in the config of my DiddyBorg. Like to move forward move 47% left and 53% right instead or something. I need the DiddyBorg for a presentation soonish.

I am glad for every tip.

Greetings

piborg's picture

The easiest way to correct this will be to reduce the speed of the faster side slightly.
This can be done by adding a multiplier to the left or right side power level.

As he is turning slightly to the left it will be the right side motors which are turning a bit too fast.
To make him drive straight we therefore want to slow the right motors to equal the left ones.

For example in diddyRedJoy.py changing:
PBR.SetMotor1(driveRight * maxPower)
to
PBR.SetMotor1(driveRight * maxPower * 0.95)
will reduce the speed of the left motors by about 5% compared to the right side.

In diddyRedWeb.py the line to change would be:
PBR.SetMotor1(driveRight)
to
PBR.SetMotor1(driveRight * 0.95)
to make the same change.

It may take some experimenting to find the right number to use.
Once you have the number it should be the same one for all of the scripts.

Subscribe to Comments for "Problems with Right Left Move Adjusments"