Go to Post me: "Was I on fire!?" Roberto: "Sure you were. We only let you burn for about 10 seconds.":yikes: - El Geffe [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 09-01-2003, 17:38
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
User_Display_Mode

Quote:

' Bit 5 of the PB_mode byte (aliased as user_display_mode below) indicates when
' the user selects the "User Mode" on the OI. PB_mode.bit5 is set to 1 in "User Mode".
' When the user selects channel, team number, or voltage, PB_mode.bit5 is set to 0
' When in "User Mode", the eight Robot Feedback LED are turned OFF.
' Note: "User Mode" is identified by the letter u in the left digit (for 4 digit OI's)
' Note: "User Mode" is identified by decimal places on the right two digits (for 3 digit OI's)

user_display_mode VAR PB_mode.bit5
User Mode turns off your status LEDs, and then helps you.. how? I guess what I'm asking is, what does it do?
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #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,600
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.
  #3   Spotlight this post!  
Unread 09-01-2003, 18:04
PyroPhin's Avatar
PyroPhin PyroPhin is offline
Registered User
None #0263
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Frozen Wasteland, NY
Posts: 68
PyroPhin is on a distinguished road
this is an example of a good idea gone horribly wrong.

when you go into user mode, it kills all your LED's because the stamp only has 8 pins open after all the other uP and misc functions. this happens to be the magic number to drive an 8 segment LED display as well.
the only way for IF to feasibly do it and not make things too complex was this.

practically.. the function is useless.. alot more usefull to have indicator LED's

~Pyro
__________________
Squee!
-=-=-=-==-=-=-=-==-=-=-==-
Team 263, Aftershock:
Alumni, guy who comes back and fixes Krass's mistakes
  #4   Spotlight this post!  
Unread 09-01-2003, 18:11
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
So.... wait... we toggle into UserDisplayMode, we lose our status LEDs, and we get to see how far we've got the joystick pushed?!? Why would you want to do that?!?!
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #5   Spotlight this post!  
Unread 09-01-2003, 18:13
PyroPhin's Avatar
PyroPhin PyroPhin is offline
Registered User
None #0263
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Frozen Wasteland, NY
Posts: 68
PyroPhin is on a distinguished road
you can set it to read other things.. but whenever you are in usermode.. only what you send into the display is visible.. you loose all your LED's

~Pyro
( and it's only p1_y... the left one is a secret ^.^ )
__________________
Squee!
-=-=-=-==-=-=-=-==-=-=-==-
Team 263, Aftershock:
Alumni, guy who comes back and fixes Krass's mistakes
  #6   Spotlight this post!  
Unread 09-01-2003, 20:10
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
I believe this might be useful during the autonomous mode. You can't send any messages to the RC but perhaps the RC sends messages to the OI.

Maybe you want to show the process the robot is on in the automated process.

I was thinking of using it for the person who is setting the switches on the RC for the different programs to make sure they have the right bits to correspond with a number.

Ex:

temp var byte

temp = sw8 <<1 + sw7 <<1 ....<<1 + sw1

essentially if there are only a few switches
temp = sw2 <<1 + sw1
works as well

right to


1. Follow Line - 00000001 - Display: 1
2. Seek and destroy - 00000010 - Display: 2
3. Dead Reckoning - 00000011 - Display: 3

The person setting it, might have a paper with a list and corresponding numbers.


I don't know this is just a sample idea, I'm not sure if the user-display still works on the OI in the automated mode.

Maybe keeping it concealed by numbers would also keep anyone else from understanding what program you are actually using.

There might even be a more practical use. Why not HOOK up the yaw rate sensor to the user input, then you can balance with a guide. Bleah, but who needs to balance, whatever.

Theres some uses I guess.
__________________
R

Last edited by rwaliany : 09-01-2003 at 20:12.
  #7   Spotlight this post!  
Unread 09-01-2003, 23:10
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
i would think that in auto mode, you'd be better off with the status lights. then, if something goes horribly wrong, you can tell, and hit the E-Stop button as fast as you can. knowing a 0 - 255 number value won't help us here...
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #8   Spotlight this post!  
Unread 09-01-2003, 23:22
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
well, having non programmers manipulating BITS isnt a good thing...

not that many people speak binary fluently, if your having 4-8 switches...

Its just a good way to make sure your not making a mistake. It was just a suggestion. Anyways, if something goes wrong, would you not see it? I think it would be more valuable to see what your program is suppose to do based on the number vs what its actually doing from sight.
__________________
R
  #9   Spotlight this post!  
Unread 10-01-2003, 00:10
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
i really wish they would just have like a 4x16 LCD module on the thing. I hate LED displays!!!!!!! I think that we should form a petition to have this changed for next year. Its not hard to engineer into the RC at all. I also wish that we could pass more detailed info to the dashboard port.
__________________
1139 Alumni
  #10   Spotlight this post!  
Unread 10-01-2003, 01:45
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
... I love my LEDs...
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
  #11   Spotlight this post!  
Unread 10-01-2003, 06:01
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
i find the LEDs much more helpful. i can program numerous things to happen to them, each which could explain an important thing happening on the robot. considering the fact that i'll probably be a driver, if i design the UI for the robot, i'll know what each LED means. any other drivers, will not only have to prove themselves to the team, but learn which LED means what, or else they can't drive. sure, it's crude, but hey, it works.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #12   Spotlight this post!  
Unread 10-01-2003, 15:46
nwagers nwagers is offline
Registered User
#0240 (Mach Vee)
 
Join Date: Oct 2001
Location: Monroe, MI
Posts: 88
nwagers is an unknown quantity at this point
Send a message via AIM to nwagers Send a message via Yahoo to nwagers
It could help with setting the trim on the joysticks too. You could use a push button to toggle through all kinds of data.

PS if you want to neaten (and shorten) your code alot, use OUTH instead of each pin
  #13   Spotlight this post!  
Unread 11-01-2003, 20:01
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
who says u have to do away with the LEDS. A serial LCD can be contrulled using one uP pin which still leaves room for LEDS. Just thing of all the stuff that could be displayed. (i love LCDs. I even modded one into my computer.)
__________________
1139 Alumni
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


All times are GMT -5. The time now is 02:04.

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