Thread: Tank Drive
View Single Post
  #2   Spotlight this post!  
Unread 14-02-2005, 21:46
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Tank Drive

Tank drive is very simple to program, and I believe that it is included in the default code, as an option. but here is what you would use as the code:
Code:
pwm01 = p1_y;   //change 01 and 1 to appropriate joystick and pwm output
pwm02 = p2_y;   //change 02 and 2 to appropriate joystick and pwm output
Thats basically it...
You put that in the function 'User_Driver' in place of whtever code you used, and its tank drive.
__________________
- from B B frank