Go to Post I hate mini-bots. - Gdeaver [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
  #5   Spotlight this post!  
Unread 24-06-2002, 00:34
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
Try this...

Posted by Nate Smith at 2/10/2001 3:07 PM EST


Other on team #66, Frostbite, from Willow Run High School and GM Powertrain.


In Reply to: Re: Need help in creating program to use servo's to shift dr
Posted by Chris Orimoto on 2/10/2001 2:31 PM EST:



: If that is the case, then you COULD program the
: operator interface LED's to respond when the
: joysticks are in the "dead zone". That's what we
: did last year...sorry, but I don't remember the code
: off hand.

: Just my personal thoughts...

: Chris, #368

Here's something that should work...

1. Define a bit variable to keep track of whether or not it is safe to shift.

shiftOK VAR bit

2. After your deadstick routine(if you don't have one, i'd highly recommend it), put in code to check if your PWM outputs are 127(off) and set your shiftOK to 1 if they BOTH are, 0 otherwise...(yes, i know this isn't the best code for doing this, but anyway...)

shiftOK = 0
if PWM1 = 127 then check2
goto cantshift
check2:
if PWM2 = 127 then setshift
goto cantshift
setshift:
shiftOK = 1
cantshift:

3. Then, check the value of shiftOK when determining if you want to shift or not...

Nate
__________________
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 10:56.

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