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