|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
4-Digit feedback from bot
My team is going to try to use a potentiometer (or a sensor that will give a degree feedback) on our arm. The way that we wanted see the values we were getting was to use the 4-Digit LEDS that usually display the team number. We looked through the manual and all of the other forums, but we couldn't find anything. Any help would be greatly appreciated.
|
|
#2
|
|||||
|
|||||
|
Re: 4-Digit feedback from bot
Quote:
There's a global variable called User_Byte (or something like it) that your code can set. The part of the default code that controls the red and green feedback LEDs on the OI will copy its value to the numeric display when the OI display select button is used to select the user byte. |
|
#3
|
|||||
|
|||||
|
Re: 4-Digit feedback from bot
Quote:
Look in user_routines.c at the very bottom and you will see the lines: Code:
else /* User Mode is On - displays data in OI 4-digit display*/
{
User_Mode_byte = backup_voltage*10; /* so that decimal doesn't get truncated. */
}
As Alan mentioned, you are limited to three of the display digits (a one byte 0-255 value). To see this displayed on the OI, push the tiny select button on the OI until a "u" is displayed in the left most digit. Last edited by Mark McLeod : 04-02-2005 at 08:47. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sphere bot | Veselin Kolev | Technical Discussion | 36 | 03-03-2005 00:03 |
| Queuing Feedback | David Gaylord | Championship Event | 3 | 20-04-2004 08:58 |
| Help! My 2003 Bot compressor won't shut off | Jack21 | Control System | 10 | 11-02-2004 12:24 |
| Help On Coding 2K1 Controller | GregTheGreat | Programming | 9 | 05-12-2003 18:35 |
| Chamionship Qualification - feedback needed ASAP! | dlavery | General Forum | 97 | 11-10-2003 07:17 |