Go to Post Rule 1. Never take Dave's hint's seriously. Rule 2. Watergame. - AndyB [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
  #1   Spotlight this post!  
Unread 17-02-2002, 21:50
Joseph F Joseph F is offline
Registered User
#0506 (Steel Friars)
 
Join Date: Jan 2002
Location: New York
Posts: 59
Joseph F is an unknown quantity at this point
Send a message via AIM to Joseph F
Need help with 255 Variable

I know never to allow a pwm to reach or exceed 255 due to the serout command. However can I create a variable and allow that variable to exceed 255? Also do i need to assign it as a word instead of a byte to allow it to work?

The reason i need this is for the pump delay I created. It currently uses 2 variables which both max out at around 240. The way its set up it gives me 11 seconds between times the pump cycles. The problem is I only lose 3psi in 11seconds from full (115 psi). I want to increase the delay without adding a 3rd variable.

Another question... With my current code the pump doesn't turn on until 11 seconds into the match (due to the variables counting up). Is there a way to start the variables at a certain value other than zero so that the pump turns on right away and then returns to its normal delay cycle?
__________________
One Team, One Bot, One Fleet of Ambulances!
 


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
Why can't you use 255 in PWM? Andrew Technical Discussion 4 29-05-2003 14:50
variable? manodrum Programming 11 01-04-2003 17:20
Dashboard programs and the char variable Ian W. Programming 13 26-06-2002 02:07
what teams have a variable transmissions? Greg Perkins Technical Discussion 4 06-03-2002 06:10
Pbasic argument question... Ghetto_Child Programming 10 18-02-2002 09:23


All times are GMT -5. The time now is 23:17.

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