View Single Post
  #12   Spotlight this post!  
Unread 31-01-2008, 17:29
Team2002 Team2002 is offline
Registered User
FRC #2002
 
Join Date: Feb 2007
Location: Tualatin OR
Posts: 6
Team2002 is an unknown quantity at this point
Re: ir sensor Board ??????????????????????

Quote:
Originally Posted by Alan Anderson View Post
Yes. The valid range of values for a pwm output is 0-254. Since the pwm "variables" in the code are of type unsigned char, trying to set one to 256 will actually end up with it set to zero.



You'll need to be a lot more specific about where you put the code. The filename is not really important. What matters is the name of the function in which it appears: Process_Data_From_Master_uP(), Default_Routine(), Process_Data_From_Local_IO(), etc.

I placed it under Default_Routine() is that the wrong place? I couldnt find a function called Process_Data_From_Local_IO(), in user_routines.c