Go to Post It wasn't about the ROBOT, or about whether I was male or female, it was about getting to compete in something that was just SO cool. - BandChick [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2005, 16:53
katkana katkana is offline
that programmer chick
AKA: Gillian Koch
FRC #1412 (Mercedes Metalheads)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Hackensack
Posts: 28
katkana is on a distinguished road
Send a message via AIM to katkana
Question Syntax Problems...

I'm in the process of writing an autonomous code for our 'bot, but when I tried to compile, I was hit with a syntax error in the file I'd edited the auto code into. Common problem, yes, but the line reference was one of the original code lines. (I should also note that the ONLY editing I've done to the file was to add the autonomous code... no changes were made to any other line).

Here's the error message:
Code:
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_fast_edit.c" -fo="user_routines_fast_edit.o" /i"C:\mcc18\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
X:\USFirst-Klaube\C Programming\FrcCode\user_routines_fast_edit.c:111:Error: syntax error
And the line reference:
Code:
while (autonomous_mode)   /* DO NOT CHANGE! */
... I also compiled the code without a space between while and (, but the same message popped up. Am I missing something here?

While I'm at it, I might as well add a question: some of the files in the output window popped up as 'out of date'.
PHP Code:
MakeThe target "X:\USFirst-Klaube\C Programming\FrcCode\user_routines_fast_edit.o" is out of date
Is this something I need be concerned with?

Thanks for the help in advance...

~kat
  #2   Spotlight this post!  
Unread 04-02-2005, 17:05
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Syntax Problems...

Quote:
Originally Posted by katkana
I'm in the process of writing an autonomous code for our 'bot, but when I tried to compile, I was hit with a syntax error in the file I'd edited the auto code into. Common problem, yes, but the line reference was one of the original code lines. (I should also note that the ONLY editing I've done to the file was to add the autonomous code... no changes were made to any other line).

Here's the error message:
Code:
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_fast_edit.c" -fo="user_routines_fast_edit.o" /i"C:\mcc18\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
X:\USFirst-Klaube\C Programming\FrcCode\user_routines_fast_edit.c:111:Error: syntax error
And the line reference:
Code:
while (autonomous_mode)   /* DO NOT CHANGE! */
... I also compiled the code without a space between while and (, but the same message popped up. Am I missing something here?

While I'm at it, I might as well add a question: some of the files in the output window popped up as 'out of date'.
PHP Code:
MakeThe target "X:\USFirst-Klaube\C Programming\FrcCode\user_routines_fast_edit.o" is out of date
Is this something I need be concerned with?

Thanks for the help in advance...

~kat
The .o file that the linker is reporting as 'out of date' is not really a problem. It has to do with the IDE not cleaning up old .o files. I wouldn't delete the .o file it is talking about, though. Did you recently add or remove a 'user_routines_fast_edit.c' source file? This shouldn't be happening. However, it is nothing to be concerned about if your code is still compiling successfully and running okay.

As for your other problem, look for a { that hasn't been closed with a }, look for " that haven't been closed, or anything else. C compilers 'cascade down' if you forget to close a block, and it will give errors for unrelated lines if the problem was above it. I don't think I was very clear:
If your code has an
if (foo==bar) {

and there isn't a

}
somewhere, that could be causing the problem. Oh, and look for lines without a ; at the end, they can do the same thing.

Good luck.
__________________
Aren't signatures a bit outdated?
  #3   Spotlight this post!  
Unread 04-02-2005, 17:10
Darkelement's Avatar
Darkelement Darkelement is offline
Team 241 Lead Programmer
AKA: JC Morgan
FRC #0241 (The Astros)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2000
Location: New Hampshire
Posts: 8
Darkelement is an unknown quantity at this point
Re: Syntax Problems...

The out-of-date message shouldn't be anything that you manually have to fix. The compiler program should update the files itself, so just ignore those messages. If the compiler doesn't do it itself, however, I have no idea what to do.
__________________
  #4   Spotlight this post!  
Unread 04-02-2005, 17:19
katkana katkana is offline
that programmer chick
AKA: Gillian Koch
FRC #1412 (Mercedes Metalheads)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Hackensack
Posts: 28
katkana is on a distinguished road
Send a message via AIM to katkana
Re: Syntax Problems...

Quote:
Originally Posted by JBotAlan
...C compilers 'cascade down' if you forget to close a block, and it will give errors for unrelated lines if the problem was above it...
Hmm... the only code above the error message line was original code. The code I entered doesn't begin until six lines down from the error message.

~kat
  #5   Spotlight this post!  
Unread 04-02-2005, 17:59
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Syntax Problems...

Quote:
Originally Posted by katkana
Hmm... the only code above the error message line was original code. The code I entered doesn't begin until six lines down from the error message.

~kat
Think you can attach attach the file/code in here?
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #6   Spotlight this post!  
Unread 05-02-2005, 01:18
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Syntax Problems...

Quote:
Originally Posted by katkana
Hmm... the only code above the error message line was original code. The code I entered doesn't begin until six lines down from the error message.

~kat
I'd guess that you are missing a closing bracket, so it goes to the highest level and flags that as the error.

As Bharat said, we can't tell you for sure unless you post the entire file.
  #7   Spotlight this post!  
Unread 07-02-2005, 07:34
katkana katkana is offline
that programmer chick
AKA: Gillian Koch
FRC #1412 (Mercedes Metalheads)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Hackensack
Posts: 28
katkana is on a distinguished road
Send a message via AIM to katkana
Re: Syntax Problems...

I'll post the entire file.. but there's a new problem. I'm not sure anymore what to call a "line" of code, seeing as a friend of mine pointed out to me that, when counting code lines, I should ignore the comments, just as the compiler does. So I went back to count comment lines, and lo and behold... there weren't enough lines (the way I counted them) to justify a 'line 111'. *hangs head in shame* and now we see the depth of her ignorance. *sigh* anywho. If anyone could clarify just what constitutes a line of code, it'd be much appreciated.

So... onto business. Here's the entire code:

Code:
/*******************************************************************************
* FILE NAME: user_routines_fast.c <FRC VERSION>
*
* DESCRIPTION:
*  This file is where the user can add their custom code within the framework
*  of the routines below. 
*
* USAGE:
*  You can either modify this file to fit your needs, or remove it from your 
*  project and replace it with a modified copy. 
*
* OPTIONS:  Interrupts are disabled and not used by default.
*
*******************************************************************************/

#include "ifi_aliases.h"
#include "ifi_default.h"
#include "ifi_utilities.h"
#include "user_routines.h"


/*** DEFINE USER VARIABLES AND INITIALIZE THEM HERE ***/


/*******************************************************************************
* FUNCTION NAME: InterruptVectorLow
* PURPOSE:       Low priority interrupt vector
* CALLED FROM:   nowhere by default
* ARGUMENTS:     none
* RETURNS:       void
* DO NOT MODIFY OR DELETE THIS FUNCTION 
*******************************************************************************/
#pragma code InterruptVectorLow = LOW_INT_VECTOR
void InterruptVectorLow (void)
{
  _asm
    goto InterruptHandlerLow  /*jump to interrupt routine*/
  _endasm
}


/*******************************************************************************
* FUNCTION NAME: InterruptHandlerLow
* PURPOSE:       Low priority interrupt handler
* If you want to use these external low priority interrupts or any of the
* peripheral interrupts then you must enable them in your initialization
* routine.  Innovation First, Inc. will not provide support for using these
* interrupts, so be careful.  There is great potential for glitchy code if good
* interrupt programming practices are not followed.  Especially read p. 28 of
* the "MPLAB(R) C18 C Compiler User's Guide" for information on context saving.
* CALLED FROM:   this file, InterruptVectorLow routine
* ARGUMENTS:     none
* RETURNS:       void
*******************************************************************************/
#pragma code
#pragma interruptlow InterruptHandlerLow save=PROD /* You may want to save additional symbols. */

void InterruptHandlerLow ()     
{                               
  unsigned char int_byte;       
  if (INTCON3bits.INT2IF && INTCON3bits.INT2IE)       /* The INT2 pin is RB2/DIG I/O 1. */
  { 
    INTCON3bits.INT2IF = 0;
  }
  else if (INTCON3bits.INT3IF && INTCON3bits.INT3IE)  /* The INT3 pin is RB3/DIG I/O 2. */
  {
    INTCON3bits.INT3IF = 0;
  }
  else if (INTCONbits.RBIF && INTCONbits.RBIE)  /* DIG I/O 3-6 (RB4, RB5, RB6, or RB7) changed. */
  {
    int_byte = PORTB;          /* You must read or write to PORTB */
    INTCONbits.RBIF = 0;     /*     and clear the interrupt flag         */
  }                                        /*     to clear the interrupt condition.  */
}


/*******************************************************************************
* FUNCTION NAME: User_Autonomous_Code
* PURPOSE:       Execute user's code during autonomous robot operation.
* You should modify this routine by adding code which you wish to run in
* autonomous mode.  It will be executed every program loop, and not
* wait for or use any data from the Operator Interface.
* CALLED FROM:   main.c file, main() routine when in Autonomous mode
* ARGUMENTS:     none
* RETURNS:       void
*******************************************************************************/
int counter = 0;
short end_program = 0;

void User_Autonomous_Code(void)
{
  /* Initialize all PWMs and Relays when entering Autonomous mode, or else it
     will be stuck with the last values mapped from the joysticks.  Remember, 
     even when Disabled it is reading inputs from the Operator Interface. 
  */
    pwm01 = pwm02 = pwm03 = pwm04 = pwm05 = pwm06 = pwm07 = pwm08 = 127;
    pwm09 = pwm10 = pwm11 = pwm12 = pwm13 = pwm14 = pwm15 = pwm16 = 127;
    relay1_fwd = relay1_rev = relay2_fwd = relay2_rev = 0;
    relay3_fwd = relay3_rev = relay4_fwd = relay4_rev = 0;
    relay5_fwd = relay5_rev = relay6_fwd = relay6_rev = 0;
    relay7_fwd = relay7_rev = relay8_fwd = relay8_rev = 0;

/* program note: pwm01 and pwm02 are the WHEEL MOTORS. pwm03 and pwm04 are the ARM MOTORS.
there is no piston used on the robot. */
  while(autonomous_mode)   /* DO NOT CHANGE! */
  {
    if(statusflag.NEW_SPI_DATA)      /* 26.2ms loop area */
    {
        Getdata(&rxdata);   /* DO NOT DELETE, or you will be stuck here forever! */

        if(end_program ! = 1) /* if program has not ended */
			{
			counter++; /* increment counter approx. 60 times per second */
			
			if(counter < 121) /* if less than 2 seconds have passed */
				{
				pwm01=pwm02=pwm03=pwm04=127; /* stop */
				}
			else if(counter > 120 && counter < 240) /* if 2-4 seconds have passed */
				{
				pwm01=155; /* right motor forward */
				pwm02=27; /* left motor backward */
				pwm03=pwm04=127; /*arm motors off */
				}
			else if(counter > 240 && counter < 360) /* if 4-6 seconds have passed */
				{
				pwm01=pwm02=pwm03=127; /* stop */
				pwm04=200; /* upper arm joint raises */
				}
			else if(counter > 360 && counter < 480) /* if 6-8 seconds have passed */
				{
				pwm01=pwm02=pwm03=127; /* stop */
				pwm04=0; /* upper arm joint lowers */
				}
			else if(counter > 480 && counter < 600) /* if 8-10 seconds have passed */
				{
				pwm01=27; /* right motor backward */
				pwm02=155; /* left motor forward */
				pwm03=pwm04=127; /* stop */
				}
			else if(counter > 600 && counter < 720) /* if 10-12 seconds have passed */
				{
				pwm01=pwm02=155; /* both wheel motors forward */
				pwm03=pwm04=127; /* stop */
				}
			else if(counter > 720 && counter < 780) /* if 12-13 seconds have passed */
				{
				pwm01=155; /* right motor forward */
				pwm02=27; /* left motor backward */
				pwm03=pwm04=127; /* stop */
				}
			else if(counter > 780 && counter < 900) /* if 13-15 seconds have passed */
				{
				pwm01=pwm02=155; /* wheels forward */
				pwm03=pwm04=127; /* stop */
				}
			else /* if more than 15 seconds have passed */
				{
				pwm01=pwm02=pwm03=pwm04=127; /* stop */
				end_program = 1; /* end program */
				}
			}
        Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

        Putdata(&txdata);   /* DO NOT DELETE, or you will get no PWM outputs! */
    }
  }
}


/*******************************************************************************
* FUNCTION NAME: Process_Data_From_Local_IO
* PURPOSE:       Execute user's realtime code.
* You should modify this routine by adding code which you wish to run fast.
* It will be executed every program loop, and not wait for fresh data 
* from the Operator Interface.
* CALLED FROM:   main.c
* ARGUMENTS:     none
* RETURNS:       void
*******************************************************************************/
void Process_Data_From_Local_IO(void)
{
  /* Add code here that you want to be executed every program loop. */

}


/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
  #8   Spotlight this post!  
Unread 07-02-2005, 07:44
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Syntax Problems...

The compiler actually says the physical line number, so the one with 111 next to it in MPLAB is the one that the compiler is complaining about. Most compilers are like this, although a few aren't, which is probably where your friend got confused.

I'm at school right now, so I'm too busy to look at the code... when I get home.
__________________

  #9   Spotlight this post!  
Unread 07-02-2005, 09:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Syntax Problems...

Quote:
Originally Posted by katkana
Code:
 
while(autonomous_mode) /* DO NOT CHANGE! */
{
if(statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{
Getdata(&rxdata); /* DO NOT DELETE, or you will be stuck here forever! */
 
if(end_program ! = 1) /* if program has not ended */
			{
			counter++; /* increment counter approx. 60 times per second */
 
			if(counter < 121) /* if less than 2 seconds have passed */
				{
				pwm01=pwm02=pwm03=pwm04=127; /* stop */
				}
			else if(counter > 120 && counter < 240) /* if 2-4 seconds have passed */
				{
...
Typo, there should not be a space between the ! and =, e.g.,
if(end_program != 1) /* if program has not ended */
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #10   Spotlight this post!  
Unread 07-02-2005, 12:11
katkana katkana is offline
that programmer chick
AKA: Gillian Koch
FRC #1412 (Mercedes Metalheads)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Hackensack
Posts: 28
katkana is on a distinguished road
Send a message via AIM to katkana
Re: Syntax Problems...

Quote:
Originally Posted by Mark McLeod
Typo, there should not be a space between the ! and =, e.g.,
if(end_program != 1) /* if program has not ended */
Neat! Thank you, very much for that help. No more errors in that code.. now... onto error the next
Code:
Error - section 'InterruptVectorLow' type is non-overlay and absolute but occurs in more than one input file.
This error popped up after the compiler stated it was executing this file path: "X:\USFirst-Klaube\C Programming\FrcCode\FRC_library.lib" /m"FrcCode.map" /o"FrcCode.cof"

I'm a little confused as to what this error message means, and how can I fix it?
  #11   Spotlight this post!  
Unread 07-02-2005, 13:18
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Syntax Problems...

Quote:
Originally Posted by katkana
Code:
Error - section 'InterruptVectorLow' type is non-overlay and absolute but occurs in more than one input file.
We get that error on occasion, always after we copy the code to a new directory. It looks like the project file might be remembering something from the previous source code files. The error always disappears when we do a clean build by pressing Control-F10.
  #12   Spotlight this post!  
Unread 07-02-2005, 14:06
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Syntax Problems...

Quote:
Originally Posted by katkana
So... onto business. Here's the entire code:
There's another problem. You're not accounting for all the the counter states, which will cause your 'bot to not function the way you think it will. As an example of what I'm referring to, have a look at the code below:

Code:
else if(counter > 120 && counter < 240) /* if 2-4 seconds have passed */
{
   pwm01=155; /* right motor forward */
   pwm02=27; /* left motor backward */
   pwm03=pwm04=127; /*arm motors off */
}
else if(counter > 240 && counter < 360) /* if 4-6 seconds have passed */
{
   pwm01=pwm02=pwm03=127; /* stop */
   pwm04=200; /* upper arm joint raises */
}
What happens when counter == 240? I think you should be using a >= or <= in there someplace (This bug bites me all the time <grin>).

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #13   Spotlight this post!  
Unread 07-02-2005, 14:59
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Syntax Problems...

Quote:
Originally Posted by Kevin Watson
What happens when counter == 240? I think you should be using a >= or <= in there someplace.
I was going to say "IN THIS CASE, I doubt that it would cause a problem." (Because I expected that the RC would just continue doing what had been doing for 1/40th of a second longer.) But then I looked at the "else" case, and saw that it would set the end_program flag, terminating the autonomous program.

I would prefer to fix this by doing something less error-prone like this:
Code:
			if(counter < 121) /* if less than 2 seconds have passed */
				{...}
			else if(counter < 240) /* if 2-4 seconds have passed */
				{...}
			else if(counter < 360) /* if 4-6 seconds have passed */
				{...}
			else if(counter < 480) /* if 6-8 seconds have passed */
				{...}
			else if(counter < 600) /* if 8-10 seconds have passed */
				{...}
			else if(counter < 720) /* if 10-12 seconds have passed */
				{...}
			else if(counter < 780) /* if 12-13 seconds have passed */
				{...}
			else if(counter < 900) /* if 13-15 seconds have passed */
				{...}
			else /* if more than 15 seconds have passed */
				{...}
			}
Quote:
(This bug bites me all the time <grin>).
Yeah, it's gotten me a few times too.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #14   Spotlight this post!  
Unread 07-02-2005, 16:15
katkana katkana is offline
that programmer chick
AKA: Gillian Koch
FRC #1412 (Mercedes Metalheads)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Hackensack
Posts: 28
katkana is on a distinguished road
Send a message via AIM to katkana
Re: Syntax Problems...

Awesome-ness. Thank you all so much for the help!

Until next problem...

~kat
Closed Thread


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
If you're having MPLAB problems, LOOK HERE. Jeremy_Mc Programming 0 20-01-2004 18:06
Do you all have problems with.... Munkaboo Website Design/Showcase 19 03-03-2003 19:51
Any problems with PBASIC 2.5 Editor v2.0 Carl Owenby Programming 7 10-02-2003 10:00
Joystick problems archiver 2001 3 24-06-2002 02:40


All times are GMT -5. The time now is 19:16.

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