View Single Post
  #5   Spotlight this post!  
Unread 28-04-2013, 09:22
nathanwalters nathanwalters is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Dec 2011
Rookie Year: 2011
Location: United States
Posts: 75
nathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud of
Re: Unable to find this, ANYWHERE - LED PROGRAMMING

My team (WildStang) set up an I2C link between the cRIO and an Arduino serving as the LED controller. In our cRIO code, we had a class that watched for events of interest, such as our kicker firing or intake motors turning on, as well as the robot state and alliance color. Upon those events, we sent a series of bytes indicating which event just took place to the Arduino. The Arduino watched for said bytes, and when it got them it illuminated the LEDs in a predefined pattern. We plan on releasing our code base at some point this year, so you'll be able to see exactly how we did this (we also used Java.)
Reply With Quote