Go to Post Are quadcopter rotors considered a pneumatic device? - bobbysq [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-10-2003, 11:30
wayne 05 wayne 05 is offline
Registered User
#0515
 
Join Date: Sep 2003
Location: gm tech center
Posts: 17
wayne 05 is an unknown quantity at this point
1 stick drive to 2 stick drive

it their a way i can make a switchto change between 1 stick drive to 2 stick drive
example:

if the switch is on the robot will use 1 stick drive

if the switch is off the robot will use 2 stick drive

can this be done in p basic

Last edited by wayne 05 : 05-10-2003 at 13:01.
  #2   Spotlight this post!  
Unread 05-10-2003, 11:48
WakeZero WakeZero is offline
FIRST-a-holic Strategist
#1011 (CRUSH)
 
Join Date: Feb 2002
Location: Tucson, AZ
Posts: 316
WakeZero will become famous soon enough
Send a message via AIM to WakeZero Send a message via Yahoo to WakeZero
Of course.

A quick (and not too efficient way) to do it would be,

-------------------
if(switch == 1)
{
drive_onejoy();
}
else if(switch == 0)
{
drive_twojoy();
}
----------------------

switch would be the switch, drive_onejoy() would be a function for driving with one joystick, and drive_twojoy() would be a function for driving with two joysticks

Hardware wise, you could use the throttle on the first joystick as the switch. So past the halfway mark in one direction is one value for switch, and the past in the other direction would be the other value. Let me know if this helps any

The above code is in C format btw, not pbasic.
__________________
2004 Arizona Regional -- Semifinalist
2003 NAT Galileo Division -- Highest Seeded Rookie (20th)
2003 NAT Galileo Division -- 100% Autonomous Completion (7 for 7)
2003 Arizona Regional -- Rookie All-Star Award
2003 Arizona Regional -- Quarterfinalist

Alumni on Team 64, The Gila Monsters
College Mentor/Founder of Team 1011, CRUSH
  #3   Spotlight this post!  
Unread 05-10-2003, 12:02
Tytus Gerrish's Avatar
Tytus Gerrish Tytus Gerrish is offline
IGAB, ADHD, and Dislexic
AKA: Ty
FRC #0179 (SwampThing)
Team Role: Tactician
 
Join Date: Feb 2003
Rookie Year: 2001
Location: West Palm Beach, Florida
Posts: 2,017
Tytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond reputeTytus Gerrish has a reputation beyond repute
personaly 2 stick sfor a tank type drive is the way to go over 1 stick, if we had uses two sticks in 2k2 we would have done better
  #4   Spotlight this post!  
Unread 05-10-2003, 13:11
Jeff Waegelin's Avatar
Jeff Waegelin Jeff Waegelin is offline
El Jefe de 148
AKA: Midwest Refugee
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 2001
Location: Greenville, TX
Posts: 3,132
Jeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond repute
Quote:
Originally posted by Tytus Gerrish
personaly 2 stick sfor a tank type drive is the way to go over 1 stick, if we had uses two sticks in 2k2 we would have done better
Not necessarily. I always found 1-stick easier for me to drive. I tended to get confused and disoriented with 2-stick drive, because it wasn't very intuitive to me. Yes, it can give you more control in some situations, but I found it easier to just point and go, when traversing long distances, especially.
__________________
Jeff Waegelin
Mechanical Engineer, Innovation First Labs
Lead Engineer, Team 148 - The Robowranglers
  #5   Spotlight this post!  
Unread 05-10-2003, 13:16
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
the robot cannot tell if you are using one joystick or two

you can get exactly the same input commands to the robot using either setup of joysticks (0 to 255 on both axis)

so it really comes down to what the driver is use to.

I believe there have been polls taken on this and most teams use one joystick - it requires less coordination between your two hands, it frees up one joystick for another function

its frees up on hand for the driver to use for something else (other input switches, point to the field with his finger, tap someone on the shoulder....)

also, one joystick inputs gives you a command that indicates how much you want to go forwards or reverse, and a seperate command that indicates how fast you want to turn.

This allows you to integrate sensors on your robot in a straightforward manner, like speed limit sensors, or using the yaw rate sensor to measure how fast you are turning

allowing closed loop feedback to be implemented to make the robots movements more stable and predictable. For example, the driver joystick is commanding a right turn at half the max rate, and the yaw rate sensor indicates the bot is turning slower than that, so the 'turn' command is increased to casue the bot to turn faster.

or even better yet, when the driver is commanding the robot to go straight (up the ramp for example) and the yaw rate sensor detects the robot is starting to turn, the feedback loop can keep the robot going straight all by itself.

This sort of thing is not as straightforward if you use two joysticks to steer.
  #6   Spotlight this post!  
Unread 05-10-2003, 13:22
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Quote:
Yes, it can give you more control in some situations
this is a common misconception. You can get exactly the same set of input signals from either setup

Last edited by KenWittlief : 05-10-2003 at 19:43.
  #7   Spotlight this post!  
Unread 05-10-2003, 15:14
Jeff Waegelin's Avatar
Jeff Waegelin Jeff Waegelin is offline
El Jefe de 148
AKA: Midwest Refugee
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 2001
Location: Greenville, TX
Posts: 3,132
Jeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond repute
Quote:
Originally posted by KenWittlief
this is a common misconception. You can get exactly the same set of input signals from either setup
Well, there are a few differences. Yes, you can get the same signals, but some types of signals are harder to achieve with one stick. The biggest one that comes to mind is driving the left stick all the way, and the right stick none or slightly forward, for a bigger arc. You can do it with one stick, but it's harder to control the amount of arc, because most people don't understand the 1-stick code fully.
__________________
Jeff Waegelin
Mechanical Engineer, Innovation First Labs
Lead Engineer, Team 148 - The Robowranglers
  #8   Spotlight this post!  
Unread 05-10-2003, 19:47
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
when you are driving, whatever setup you are using to control the bot, you should have enough practice so you are not thinking about where the joysticks are, or what each motor is doing

you should be able to make the bot go where you want intuitively, like riding a bike, or running (you dont think "left foot, right foot, left foot...." when you run)

the biggest control advantage of using only one stick is going straight forward. Its difficult to move two joysticks forward exactly the same amount at the same time, but with one stick its easy.
  #9   Spotlight this post!  
Unread 05-10-2003, 20:49
Frank(Aflak)'s Avatar
Frank(Aflak) Frank(Aflak) is offline
Registered User
#1067 (SLUH)
 
Join Date: Dec 2002
Location: Saint Louis
Posts: 375
Frank(Aflak) is on a distinguished road
Quote:
Originally posted by KenWittlief
(you dont think "left foot, right foot, left foot...." when you run)
You mean you don't have to think about that . . . . . ?


On topic: One stick/two stick, it all depends on who is driving. I never could control a ground vehicle with one stick because I grew up on flight sims, and the muscle-memory makes it hard to translate pitch/roll into x/y. But thats just me. A kid who gre up playing racing games with a joystick will prefer the one stick style.

Heh, I had an old Landshark remote car, big old 9.6V battery pack, it could go 10mph, and had treads. Sure enough, the controller had two sticks, a left and a right. So thats just how I learned to drive a tank steering chassis, it comes natural to me now.

In the end, the old saying wins out. "Whatever boats your float."
  #10   Spotlight this post!  
Unread 06-10-2003, 10:04
Kevin Kolodziej's Avatar
Kevin Kolodziej Kevin Kolodziej is offline
Operator in 100+ matches
AKA: Yngwie Kamen's roadie
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 1999
Location: Milwaukee, WI
Posts: 631
Kevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond reputeKevin Kolodziej has a reputation beyond repute
Send a message via AIM to Kevin Kolodziej
It really is a matter of a preference

As a kid, I grew up playing with games that used only one joystick. When I first drove Hammond's 98 robot on one stick, I almost wiped out the store we were practicing in! I did learn to control it much more easily, but once we hooked things up with two joysticks, there was no turning back for me. Maybe I just never had enough time to practice with it, but I could never achieve the range of arcs with one joystick.

The new WildBeast robot this past year was set up with one joystick for driving and one joystick for activating our articulate treads. This was one difficult machine to get used to, for me at least. But our driver did really well with it. The whole season I tried to get him to use a two joystick configuration just once though. In the offseason, at the Wisconsin State Fair, I believe it was team 357 allowed him to try their robot with two joysticks. He absolutely loved the ease of control and was instantly hooked.

These are my experiences, but your preference is the only thing that matters.
__________________
Team 71: 1999, 2000 (Driver), 2001-2002 (Driver, Animator) // Team 1064: 2003 (Co-founder, Coach), 2004 (Coach) // Team 1714: 2006-2007 (Mentor, Coach)
Team 1675: 2005-2007 (Mentor, Coach), 2008 (Mentor), 2009-2017 (Mentor, Coach)
FLL: '04 (Judge), '05 (Ref), '06 (Ref), '07 (Ref), '08 (Judge, Ref), '09 (Judge), '10 (Ref), '16 (Judge Advisor) // Ref: '05 (IN, IRI), '06 (IN, IRI), '07 (IN, IRI), '08 (WMR, Curie)
WI RPC: 2006 - 2016 // FRC Inspector: '07 (WI), '08 (WI, IL), '09 (WI, IL), '10 (WI, CMP), '11 (WI, IL, CMP), '12 (WI), '13 (Northern Lights)
2007 WI Woodie Flowers Award Finalist // 2011 Wisconsin Regional Outstanding Volunteer // 2011/2013 Midwest Regional Chairman's Award
  #11   Spotlight this post!  
Unread 06-10-2003, 12:45
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
One stick vs two sticks became a heated debate for us in 2002. So, we programmed the RC so we could switch between either - on the fly - and turned it loose on a group of experienced and rookie drivers for a "drive-off" Our 'bot that year was a tank treaded, 2-speed, single goal grabber. Everyone got practice time, and then we timed each driver on a course that included a figure 8 around 2 goals, grabbing a goal and moving it to the far side of our shop. As I recall, all except 1 driver turned in the best times using the single stick. Throw in whatever caveats you want to, but we felt that it settled the issue for us.
__________________

Don't PANIC!
S. P. A. M.
  #12   Spotlight this post!  
Unread 06-10-2003, 13:27
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
EricS - good observation. Its hard to argue with a data-driven analysis.
  #13   Spotlight this post!  
Unread 07-10-2003, 12:08
Gabe Salas Jr.'s Avatar
Gabe Salas Jr. Gabe Salas Jr. is offline
Ri3D 1.0
AKA: CrazyBear
FRC #0233
Team Role: Mentor
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Rockledge, Florida
Posts: 333
Gabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant futureGabe Salas Jr. has a brilliant future
Manning two joysticks makes you look cool, because using two joysticks is more impressive than just using one. Just messing. It reminds me of manning a mech from some anime, or MechWarrior which is exactly what you are doing at competition. Sorry for going off topic.
__________________
"Confidence, not arrogance."
Does your robot use its powers for good, or for awesome?
  #14   Spotlight this post!  
Unread 07-10-2003, 17:10
Mark Hamilton's Avatar
Mark Hamilton Mark Hamilton is offline
Belphegor made me do it.
#0108 (SigmaC@t)
 
Join Date: Oct 2001
Location: Ft. Lauderdale, FL
Posts: 207
Mark Hamilton will become famous soon enough
Send a message via ICQ to Mark Hamilton Send a message via AIM to Mark Hamilton
In my opinion, two stick is the way to go. The closer your controls model the way your robot works, the better. For example, a car uses a wheel and pedal to control it. This is is because a car operates by rotating the wheels, and spinning the wheels at a variable rate. If you robot drives by turning both sides independtly in a tank style drive, why not give your driver a contro system that mimics how the robot will actually react? It might take a little more getting used to, but in the end it is less confusing. No matter what orientation the robot is facing, if the driver is thinking like the robot, he will not get confused. He can think of driving on the robots terms. With a 1 stick drive, he has to interpret the actions he needs the robot to perform into the right joystick movement. As for going straight, with some practice it should not be a problem. If it is, some simple code can fix it, just compare the joystick inputs, and if they are very similiar, interpret them as being equal, giving you a straight line. My message to the programmers on my team when I was driving was always the driver knows best(when it comes to actually controlling the robot). Write code to assist the driver, not try to replace him, or assume he really "meant" to do something else.
__________________
Retired member of Team 108
  #15   Spotlight this post!  
Unread 07-10-2003, 20:28
Andy A. Andy A. is offline
Getting old
FRC #0095
Team Role: Coach
 
Join Date: Jun 2001
Rookie Year: 2001
Location: New Hampshire
Posts: 1,018
Andy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond repute
Ask me, and I'll say the fewer buttons, sticks and readouts your drivers have to deal with to control the 'bot, the better. Complexity kills. Give the drivers the ability to fully control the 'bot, but as simply as possible.

One stick always felt much better for me. I also noticed that two stick drivers had the tendency to really slam the sticks back and forth, because accelerating evenly was such a hassle. It's easier to just throw both sticks to the stops. One stickers had an easier time of accelerating smoothly, and I'm sure that this translates into longer lives for gearboxes.

Above all else, it is a matter of choice for the driver. It's just that one stick is the right one .

-Andy A.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2-wheel versus 4-wheel drive Ben Mitchell Technical Discussion 23 07-11-2003 00:50
Direct drive or Chain? Suneet Technical Discussion 32 27-03-2003 23:00
one stick drive Hendrix Programming 3 14-02-2003 20:53
what's your most important drive train advice? Ken Leung Technical Discussion 42 07-01-2003 09:58
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32


All times are GMT -5. The time now is 18:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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