View Single Post
  #1   Spotlight this post!  
Unread 23-02-2004, 16:25
bstempi bstempi is offline
Captain
#0708 (Hardwired Hatters)
Team Role: Student
 
Join Date: Feb 2004
Location: Horsham, Pa
Posts: 23
bstempi is an unknown quantity at this point
Send a message via AIM to bstempi
Feed back LEDS on OI

Hey everybody.

I have 3 banner sensors on the front of my bot. They are hooked up to digital inputs 1, 3, and 5. I wanted to get some feed back from them without using dashboard and having to carry around a laptop. So, I decided that I wasnted to use the feedback LEDS on the OI. In the bottom of user_routines.c, i added a few lines like this:

SWITCH_1 = !(int)rc_digital_in01;

and modified it for each LED. I know i have the switch one variable wrong because i'm not looking at the code right now. Can anybody tell me what i'm doing wrong?