View Single Post
  #2   Spotlight this post!  
Unread 09-01-2003, 17:53
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,587
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
On the 7 segment display of the operator interface, it will display the value that you choose.

Last year, that display could show team number, channel number, and battery voltage. Now it can display those as well as the user display.

The following code is where you set which variable is to be displayed:

Quote:
if user_display_mode = 0 then 'User Mode is Off

'CODE DELETED FOR CLARITY

else 'User Mode is ON

out8 = p1_y.bit0 ' Set ouput bits to display p1_y variable
out9 = p1_y.bit1
out10 = p1_y.bit2
out11 = p1_y.bit3
out12 = p1_y.bit4
out13 = p1_y.bit5
out14 = p1_y.bit6
out15 = p1_y.bit7
endif
Change the p1_y to any byte variable to display it.