View Single Post
  #4   Spotlight this post!  
Unread 19-02-2004, 13:01
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Four Motor Programming

are you using a gearbox so that the motors end up matching spin speeds? if so, it should work fine. if not, you might need to make a function to translate the value going to one set of motors into an appropriate value for the others... i.e. if your chips are on pwms 1 and 2, and the drills on 3 and 4:

Code:
pwm01 = leftvalue;
pwm02 = rightvalue;
pwm03 = drillTranslate(leftvalue);
pwm04 = drillTranslate(rightvalue);
the drillTranslate() function might just be a simple curve, or you might need to use a lookup table.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)