Go to Post what is FIRST?...It's about innovation, hard work, inspiration, teaching, learning, experiment, strategy, competition, meeting new people, being inspired, aiming high and changing paradigms...Really, FIRST is what you make of it. - jarowe [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #20   Spotlight this post!  
Unread 24-06-2002, 00:35
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: Need help in creating program to use servo's to shift drive

Posted by Jay Lundy at 2/11/2001 2:37 AM EST


Student on team #254, The Cheesy Poofs, from Bellarmine College Preparatory.


In Reply to: Need help in creating program to use servo's to shift drive
Posted by Barry Horwitz on 2/9/2001 10:55 PM EST:



Stephen's program is correct, it's just that it is better if you give it some leeway. I forget exactly what range I let the joysticks be, but because the calibration on the joystick could be off by 1,2, or even 3 and the speed controllers still stay inactive, I used a slightly different IF statement:

if p1_y > 131 or p1_y 131 or p2_y

noShift:

I found that this works better. I think the range in my program is actually a little bigger than 123-131 and it still never stalls, but do whatever you want. I also suggest (if you haven't already done this) to use the LEDs on the operator interface to tell you what gear you are in. Also, assuming you are using servos to shift gears, make sure you wait about a second after shifting gears to move again or you risk stalling. Better safe than sorry.



__________________
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
1 stick drive to 2 stick drive wayne 05 Programming 18 01-04-2004 16:41
Creating a dashboard program Jeff_Rice Programming 18 04-05-2003 23:21
what's your most important drive train advice? Ken Leung Technical Discussion 42 07-01-2003 09:58
Anyone looking for more program space? archiver 2001 13 24-06-2002 02:20
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32


All times are GMT -5. The time now is 01:16.

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