Go to Post What I want is to ultimately make it so that the programming is actually done before the robot is finished. Imagine that! - Danny Diaz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2005, 20:38
Hershey's Avatar
Hershey Hershey is offline
You can't name all of my positions!
AKA: Andrew
#1290 (Wolfgang Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Chandler, Arizona
Posts: 33
Hershey can only hope to improve
Send a message via AIM to Hershey
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   Spotlight this post!  
Unread 03-02-2005, 21:44
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,113
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: 4-Digit feedback from bot

Quote:
Originally Posted by Hershey
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.
You can put an 8-bit value on the display. I don't have access to the code at the moment, so don't take any of this verbatim; look it up for yourself.

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   Spotlight this post!  
Unread 04-02-2005, 08:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 4-Digit feedback from bot

Quote:
Originally Posted by Hershey
The way that we wanted see the values we were getting was to use the 4-Digit LEDS that usually display the team number.
An example is provided in the FrcCode2005v2.2 version of the default code.
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. */
}
This sets those OI digits to show the backup battery voltage (in tenths of volts). You can set User_Mode_byte equal to your pot, but you must shift the value 2 bits.
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 04-02-2005 at 08:47.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 19:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi