View Single Post
  #10   Spotlight this post!  
Unread 29-03-2004, 18:10
Robohawk-master's Avatar
Robohawk-master Robohawk-master is offline
Registered User
AKA: Barry
#1109 (Robohawks)
Team Role: Operator
 
Join Date: Mar 2004
Rookie Year: 2003
Location: Lively, Ontario
Posts: 21
Robohawk-master is on a distinguished road
Post Re: More automonous help:ending stuff

Here is the final code (drum roll please)

Code:
	if (rc_dig_in01 == 0 && rc_dig_in02 == 0 && rc_dig_in03 == 0)
			{
				pwm13 = 127;
				pwm15 = 127;
			}
			else if (rc_dig_in01 == 0 && rc_dig_in02 == 0 && rc_dig_in03 == 1)
			{
				pwm13 = 139;
				pwm15 = 175;
			}
			else if (rc_dig_in01 == 1 && rc_dig_in02 == 0 && rc_dig_in03 == 0)
			{
				pwm13 = 175;
				pwm15 = 139;
			}
			else if (rc_dig_in01 == 0 && rc_dig_in02 == 1 && rc_dig_in03 == 0)
			{
				pwm13 = 249;
				pwm15 = 249;
			} 
			else if (count > 1000){
				pwm13 = 127;
				pwm15 = 127;
				pwm3 = 175;
			}
			else if (count > 1005){
				pwm3 = 127;
			}                        /* Hey! There are 3435 loops in 15 minutes */
If some one sees a flaw, PLEASE tell me, the Canadian Regional is on Wednesday.

One more thing... I attached a screenshot of where I placed the counter (in the user instalizationz). I this the right spot?

Thank you all who answered my questions...This site has been our only programming resource for our team.
__________________
- Barry -
-2004 Canadian Regional Semi-Finalists
-2004 Bruce Power Safety Award

Last edited by Robohawk-master : 29-03-2004 at 18:15.