Quote:
Originally Posted by B_Dubbs
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.