View Single Post
  #9   Spotlight this post!  
Unread 07-02-2005, 09:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,801
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