Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Programming Drive with a 4 Motor, 2 Wheel Setup (http://www.chiefdelphi.com/forums/showthread.php?t=113743)

r0306 17-02-2013 02:48

Programming Drive with a 4 Motor, 2 Wheel Setup
 
We've decided to move double up the power to the back wheels by moving front motors to the back and leaving the front with free-spinning low friction wheels, as shown in the picture below. However, I am unsure as how I should program the drive code as we were using the default drive constructor:

Code:

RobotDrive drive = new RobotDrive(FRONT_LEFT, REAR_LEFT, FRONT_RIGHT, REAR_RIGHT);
Now that the two front motors are relocated, should I reverse the channels so that they turn the same direction like this:

Code:

RobotDrive drive = new RobotDrive(FRONT_RIGHT, REAR_LEFT, FRONT_RIGHT, REAR_LEFT);

eddie12390 17-02-2013 09:30

Re: Programming Drive with a 4 Motor, 2 Wheel Setup
 
Quote:

Originally Posted by r0306 (Post 1234854)
We've decided to move double up the power to the back wheels by moving front motors to the back and leaving the front with free-spinning low friction wheels, as shown in the picture below. However, I am unsure as how I should program the drive code as we were using the default drive constructor:

Code:

RobotDrive drive = new RobotDrive(FRONT_LEFT, REAR_LEFT, FRONT_RIGHT, REAR_RIGHT);
Now that the two front motors are relocated, should I reverse the channels so that they turn the same direction like this:

Code:

RobotDrive drive = new RobotDrive(FRONT_RIGHT, REAR_LEFT, FRONT_RIGHT, REAR_LEFT);

I'm not sure that you need to make any change at all, depending on the build of the gearbox the motors should still spin the same direction that they did previously. If you try to run anything like Mecanum strafing it won't work but the normal drive code (Tank/Arcade) should be just fine.

Ether 17-02-2013 18:25

Re: Programming Drive with a 4 Motor, 2 Wheel Setup
 
Quote:

Originally Posted by r0306 (Post 1234854)
We've decided to move double up the power to the back wheels by moving front motors to the back and leaving the front with free-spinning low friction wheels

If you are doing this to solve the turning problem discussed here, I doubt it will work. For your sake, I hope I'm wrong.

Please let us know.



r0306 18-02-2013 00:28

Re: Programming Drive with a 4 Motor, 2 Wheel Setup
 
Actually, we managed to resolve the turning issue by doing this. We tested it today and it works. Although it's still hard to turn sometimes, it is an obvious improvement to the 4 high traction design.

Ether 18-02-2013 00:31

Re: Programming Drive with a 4 Motor, 2 Wheel Setup
 
Quote:

Originally Posted by r0306 (Post 1235443)
We tested it today and it works.

On carpet?



r0306 20-02-2013 00:16

Re: Programming Drive with a 4 Motor, 2 Wheel Setup
 
Not so much on carpet as on tiles but it is still turn-able on the playing field.


All times are GMT -5. The time now is 10:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi