Go to Post There's no better way to start your FIRST career then opening a box and getting free stuff from Andy Baker! - JosephC [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 19-02-2003, 20:05
redbeard0531 redbeard0531 is offline
Registered User
#0686 (Bovine Intervention)
 
Join Date: Jan 2003
Location: New Market, MD
Posts: 40
redbeard0531 is an unknown quantity at this point
Send a message via AIM to redbeard0531
<edit>Removed stuff covered by people who replied faster that me.</edit>

Here is what I suggest.

GoSub Fire3:

Fire3:

count Var word 'Number of 26ms periods
Fire3On Var Bit ' 1 if the piston should fire

If p2_sw_trig = 1 then Fire3On = 1

If Fire3On = 0 Then DontFire:

If count < 3000 then
relay1_fwd = 1
count = count + 1 + delta_t
Else
relay1_fwd = 0
count = 0
Fire3On = 0
EndIf

DontFire:

Return

That is how I would do it, but it may not be exactly what you need.

Last edited by redbeard0531 : 19-02-2003 at 20:07.
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grease inside the Drill Motor gear box? archiver 2000 2 23-06-2002 23:07


All times are GMT -5. The time now is 21:22.

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