Go to Post In the real world nothing is ever to spec. Just another part of the challenge. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #15   Spotlight this post!  
Unread 24-10-2010, 21:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to code Macanum ddrive

Quote:
Originally Posted by RoboMaster View Post
"Tank-based holo drive" (what Ether was describing): robot is driven normally like a tank: two joysticks control the left and right wheels of the robot.
Correct. You use the Y axis of each joystick for tank drive.

Quote:
But, when the driver presses a button, the robot switches to strafing only
That's not what I was describing. When you hold a button down, it enables the X axis of, say, the right joystick. The X-axis controls strafing. But the Y axes are not disabled. The Y axes of the 2 joysticks continue to operate as tank drive in this mode, controlling the fwd/rev and rotate degrees of freedom. So the driver, if skilled enough, can control all three degrees of freedom simultaneously.

The button is not required. You could leave the X-axis (strafe command) enabled all the time. Field experience has shown, however, that it is useful to disable the X-axis unless it is needed. This way, the driver doesn't unintentionally command strafe when he doesn't want it.


Quote:
This might be a little trickier and would require a combination of the holo drive VI and the tank drive VI (switching between the two based on if the button was pressed).
All it requires is the cartesian mecanum vi. No switching is required. Calculate (Y1+Y2)/2 and feed it to the cartesian mecanum vi "Y" input (fwd/rev). Calculate (Y1-Y2)/2 and feed it to the "rotation" input. Feed X to the X input (strafe). This will provide tank drive with the left and right joystick Y axes; and when X is not zero you will get strafing too.

Quote:
However, this is nice and easy to drive because you normally just drive with the tank drive technique, which is intuitive. The strafing is like an added bonus.
Exactly.

Quote:
(Note: you could use arcade drive instead of tank drive, which would require only one joystick. The point is that you're switching between that and holo drive to enable strafing).
You could use 2 joysticks for arcade+strafe with the cartesian mecanum vi: Y1 for fwd/rev, X1 for rotate, and X2 for strafe.






Last edited by Ether : 24-10-2010 at 21:51.
Reply With Quote
 


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
Macanum ability to climb ramps BIGWILLI2081 Rules/Strategy 47 17-01-2010 00:20
How do i Upload code? seanl Programming 2 20-01-2009 10:46
Inventor > G-Code - HOW!!?? =Martin=Taylor= Inventor 4 17-07-2007 03:18
How to type my code jewbilee Programming 7 07-03-2007 21:51
how to convert Easy C code into real code? TheHolyLancer Programming 1 29-01-2006 09:09


All times are GMT -5. The time now is 15:01.

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