Go to Post We are customers to FIRST. In that comes expectations. I don't want to hear another, "You should be grateful for everything FIRST does" nonsense when FIRST royally screws up. - MikeDubreuil [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2000
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-06-2002, 00:21
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: 4x4 software differential

Posted by James.

Coach on team #21, ComBBAT, from Brevard Community College and Boeing.

Posted on 11/8/2000 12:45 PM MST


In Reply to: 4x4 software differential posted by James on 11/4/2000 1:27 PM MST:



: I am trying to come up with a single joystick operated 4x4 base that the front wheels are steerable. I have tried tank style single joysitck and doesn't work well. So I need software 'differential.' Both motors going in the same direction, but at different speeds while turning proportional to the radius of the turn. The tighter the turn, the slower(to a point) the inside motor spins. Any thoughts?
: James Rallo

I have figured out a simple little program that does what I needed. Thanks to all. Here it is:
**note: untested in the real world, only tested on computer**
Pwm1 is the right motor
Pwm2 is the left motor
Pwm3 is the steering motor(if using a speed controler)
relay1 is the steering motor (if using a spike)

'---------4x4 differential----------------------------------------------------
If p1_y=127 then notmoving:


adjustrightspeed
If p1_x>138 then adjustright: goto dontadjustright

adjustright
pwm1=(p1_y-(p1_x/19)) min 0 max 254 :goto adjustleftspeed 'adjust the speed of the left wheel

dontadjustright
pwm1=p1_y

adjustleftspeed
If p1_xp1_x then subtract:
If sensor1
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCRRF Design Classes Redhead Jokes Southern California Regional Robotics Forum 0 10-07-2003 17:29
which software Ryan Foley 3D Animation and Competition 5 01-03-2003 23:39
any one get the software yet?! activemx 3D Animation and Competition 17 28-11-2002 19:06
software software software archiver 2001 5 24-06-2002 00:21
Reactor software? Adrian Wong 3D Animation and Competition 4 15-01-2002 16:45


All times are GMT -5. The time now is 03:46.

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