View Single Post
  #8   Spotlight this post!  
Unread 03-02-2006, 16:44
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: problem with using a loop

Quote:
Originally Posted by CompMaster
This is the MPLAB you know lol...
anyway I mean for any loop like
Code:
while(p1_x=127 && rc_dig_in01)
       pwm11=50;
Even if this was a valid technique, the loop would never exit.

What you probably wanted was this:
Code:
while(p1_x == 127 && rc_dig_in01)
       pwm11=50;
The "=" operator assigns. The "==" operator compares.