Go to Post Instead of dreading the potential alliance think of ways to impress them so they want you to be part of it! - Koko Ed [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 18-01-2009, 04:06
tuna.and.cheese tuna.and.cheese is offline
Registered User
None #0333
 
Join Date: Jan 2009
Location: Brooklyn, N.Y.
Posts: 2
tuna.and.cheese is an unknown quantity at this point
Programming Direct drive with Direct (car like steering)

Hi everyone. I am trying to implement direct drive where all four motors are connected directly to all four wheels. I also want these wheels to each turn like a car would to make turns. If the joystick is in the upper left position, the robot will turn left and go forward and if in the right position, the same but turn right. The drive train is already built and the electronics are on the robot, but I am yet to attempt to program this and am just in the research stage.

Would anyone know how I could go about attempting this? I could get the robot to go foward and back, but to do this while at the same time rotating motors to turn left or right is not making too much sense.

Any help will be great. Thanks. Justin.
  #2   Spotlight this post!  
Unread 18-01-2009, 11:03
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Programming Direct drive with Direct (car like steering)

If you are using labview, you can use the WPI Robotics Library's Arcade Drive VI.
This is the default VI, so the default labview code (essentially just the framework, basic or advanced) can be built and sent to the cRIO to have this working.

If you are going to use C/C++, you are going to have to implement a relatively simple formula. The way it is *usually* done is to take the Y axis and call it velocity, then call the x axis rotation.

A simple two motor example-
Code:
wR = velocity + rotation;
wL = velocity - rotation;
__________________
Team 2052- KnightKrawler
Mentor and volunteer
  #3   Spotlight this post!  
Unread 18-01-2009, 11:26
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Programming Direct drive with Direct (car like steering)

We did something like this on our Overdrive bot with the steering(Ackermann steering system). The biggest thing that you have to watch out for is that this will not work as an open-loop system--you HAVE to have feedback from the wheels, or positioning errors will make your robot unsteerable after a few turns. Ideally, you would use servos to handle the turning, but I don't think any of the allowed servos are quite beefy enough to handle that. What we did was hook up a worm motor to the steering system, and then had a potentiometer provide feedback, but the tricky part about this was getting oscillation out of the system.
__________________
Get yer robot source code here!
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
Direct drive from Toughbox? jtd07 Kit & Additional Hardware 3 17-01-2009 18:15
CIM direct drive robomaxx Motors 23 15-05-2008 22:30
Wheel direct drive molly Technical Discussion 15 25-01-2008 00:32
Direct drive or Chain? Suneet Technical Discussion 32 27-03-2003 23:00


All times are GMT -5. The time now is 21:50.

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