Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   1 stick drive to 2 stick drive (http://www.chiefdelphi.com/forums/showthread.php?t=22172)

WakeZero 07-10-2003 20:42

For tank drive, I like having the control of two joysticks. It makes me feel in total control of the robot, and I don't have to think about it ;)

For Swerve however, it's all about one joystick and the ability to say, "I want to go that way!" :yikes:

golf_cart_john 08-10-2003 21:06

My team likes 1 stick drive, better, but all this debate seems to say that having a switch between the two methods is a good idea. Each driver can drive how (s)he likes.
Anyway, it shouldn't be too hard to switch between the two. Each method can be expressed as two formulas that give left tread and right tread ans a function of input. So, you can have code like WakeZero's code:

Code:

if(switch == 1)
{
//one joystick formula
pwm1 = p1_y + p1_x - 128;
pwm2 = p1_y - p1_x - 128;
}
else if(switch == 0)
{
//two joystick formula
pwm1 = p1_y;
pwm2 = p2_y;
}

Those aren't the exact formulas, but it shouldn't be too hard to do if you just use your existing formulas for each type of drive.

Randy_VanW. 01-04-2004 11:44

Re: 1 stick drive to 2 stick drive
 
Its a two stick drive all the way for me. I find it to be more reactive but harder to control. It also allows for Independant control of both sides which allows for more manuverabilty. That and with a two stick drive it is easier to manipulate the turning radius.

Ryan M. 01-04-2004 16:41

Re: 1 stick drive to 2 stick drive
 
*cough*

This thread is from last year. :)


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

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