View Single Post
  #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: 544
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