Thread: OI LEDs
View Single Post
  #5   Spotlight this post!  
Unread 13-02-2008, 21:35
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
Re: OI LEDs

Quote:
Originally Posted by B_Dubbs View Post
Thank you very much for your help. We had User_Mode_byte set to our autonomous selector to show which autonomous code we were running. It seems odd that we can only do lights or user number. Do you know of any way to display the lights and the user number on the OI display?
Although you can't display both simultaneously, you can select between them. The OI sends back to the user processor which mode is being displayed in the rxdata packet.

For example:

Code:
ifi_aliases.h:311: #define user_display_mode   rxdata.rc_mode_byte.mode.user_display


  if (user_display_mode == 0) /* User Mode is Off */
  {
       set LED code
   }

:
.
{somewhere else in the code}
   if (user_display_mode == 1) /* User Mode is On */
  {
       User_Mode_byte = autonomous selectore
   }
Then the operator can choose which to look at using the selector button on the OI. The code they will send back when the operator is interested in looking at.