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 */