View Single Post
  #12   Spotlight this post!  
Unread 14-03-2008, 13:50
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: General question.

My assuption was that the ir board would connect to the controller by 4 pwm cables.

Each connection would eather get a 1 or 0 (1 signal recieved, 0 no signal) therefore i use that in code.
See


code:
PHP Code:
#define func1=digital_input_1 /*or what ever*/

If (func1 1/*singal 1 is being recieved by ir board*/
  
Be awesome!
If (
func1 0/*signal 1 not being recieved by ir board*/
 
Be lame
__________________
Is now an engineer thanks to FIRST.