View Single Post
  #8   Spotlight this post!  
Unread 08-10-2007, 00:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: OI control box, LED questions

Quote:
Originally Posted by Tanis View Post
Where in the coding do the pins for the relay lights get mapped to relay lights (or is it in the OI's code)?
It's in the user_routines.c file, I think at the end of either process_data_from_master_uP() or Default_routine() (don't rely on my memory for proper spelling or capitalization of the function names).

Quote:
Finally, is there a way to hook up an LED display (4 digit) to the OI?
The OI already has a 4-digit LED display. You can use the "user byte" feature to send an eight-bit integer to be shown on it.

Quote:
We were thinking that an LED display to display the pressure in the pneumatics would be a great feature.
We did exactly that for our 2004 robot. A "diagnostic select" switch let us choose among pneumatic pressure and feedback from the turret, elbow, and wrist position sensors. It turned out not to be very useful during competition, but it helped a lot for setting limits and presets when programming.

Quote:
We would like to hook something like this up to the OI. Ignoring external power rules, could we make it work?
If you want to do something like that, using the dashboard port is probably the best way to do it. External power is not an issue for things connected to it, and you can send back six bytes of arbitrary data without restriction. You can also cheat and repurpose unused PWM channels as extra data bytes (though I think the value FF is forbidden, and gets sent as FE).