Go to Post I have some free time tonight (What?) - Brandon Martus [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 13-02-2004, 21:34
rich556's Avatar
rich556 rich556 is offline
Registered User
#1049 (Archangel Robotics)
Team Role: Mentor
 
Join Date: Feb 2004
Location: Toronto
Posts: 2
rich556 is an unknown quantity at this point
Dashboard Programming

I was just wondering if anyone knows what the 6 user bytes and the user warning, error and command bytes are for. I've looked around and I haven't been able to figure out what they're used for. If anyone knows what they're for, I'd really appreciate the help.

BTW, I'm new to these forums so I hope I'm posting this in the right place.
__________________
Assumption is the mother of all screw ups.
  #2   Spotlight this post!  
Unread 13-02-2004, 21:47
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Dashboard Programming

The 6 user bytes can be set in the program to be fed back to the Operator Interface. The first user byte (default p1_y) can be viewed on the OI by switching it to user mode. I don't know any of the details about the error, or warning, or USER CMD bytes.

Welcome to the forums! Programming is a good place to put a question like this. It also could be put in the Control System Section.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
  #3   Spotlight this post!  
Unread 13-02-2004, 23:48
rich556's Avatar
rich556 rich556 is offline
Registered User
#1049 (Archangel Robotics)
Team Role: Mentor
 
Join Date: Feb 2004
Location: Toronto
Posts: 2
rich556 is an unknown quantity at this point
Re: Dashboard Programming

Thanks for the information! I'll be sure to go over the FRC source code to make sure to find out what exactly is being sent back in those user bytes.
__________________
Assumption is the mother of all screw ups.
  #4   Spotlight this post!  
Unread 14-02-2004, 11:22
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,906
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: Dashboard Programming

The USER_BYTEs are viewable via the IFI provided dashboard program on a PC connected to the OI via the dashboard port.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 10-03-2004, 21:33
Jeff_Rice's Avatar
Jeff_Rice Jeff_Rice is offline
ElementisRegamusProelium
#1359
Team Role: Programmer
 
Join Date: Dec 2002
Location: Linn County
Posts: 283
Jeff_Rice will become famous soon enoughJeff_Rice will become famous soon enough
Re: Dashboard Programming

I was going to put this in a new thread, but is discussed a little here. Could someone explain how to use the 6 user bytes please(without messing up my pwm outputs)?
__________________
"He said my name is Private Andrew Malone
If you're reading this then I didn't make it home
But for every dream that's shattered another one comes true
This car was once a dream of mine now it belongs to you
And though you may take her and make her your own
You'll always be riding with Private Malone" David Ball, "Private Malone"
  #6   Spotlight this post!  
Unread 10-03-2004, 21:38
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.
Re: Dashboard Programming

Quote:
Originally Posted by Jeff_Rice
I was going to put this in a new thread, but is discussed a little here. Could someone explain how to use the 6 user bytes please(without messing up my pwm outputs)?
I believe the user bytes are called by 'user_bytex" where x is 1 to 6. So you use it the same as a pwm, or you can break it up into it's bits, but I'm not sure how to do that off the top of my head, and I don't have the program loaded up anywhere to double check quickly.

For example, if you want a user byte to show the analog pressure switch, something like this would work...

user_byte1 = analog_pressure;

Of course, the analog inputs are 10 bits, instead of 8 bits, so that screws you up, and I haven't found a good way to get around that yet... :-\
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #7   Spotlight this post!  
Unread 10-03-2004, 21:57
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,906
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: Dashboard Programming

Quote:
Originally Posted by Jeff_Rice
I was going to put this in a new thread, but is discussed a little here. Could someone explain how to use the 6 user bytes please(without messing up my pwm outputs)?
Here's an example from our user_routines.c
(make sure you have ifi_aliases.h included)

[edit]Each of these User_Byte1,2,3,4,5,6 are defined in ifi_aliases.h and are all "unsigned char"

Code:
User_Byte1 = LeftAmps; 
User_Byte2 = RightAmps;
/* Display the gyro heading byte3 if its negative, byte4 if its positive */
igyrovalue = Gyro_Degrees();
if (igyrovalue > 0)
{
User_Byte3 = 0; 
User_Byte4 = (char) igyrovalue;
}
else
{
User_Byte3 = (char) -igyrovalue; 
User_Byte4 = 0;
}
 
User_Byte5 = 99; // Displays "99" on the dashboard program
User_Byte6 = 254; // No particular reason

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-03-2004 at 08:48.
  #8   Spotlight this post!  
Unread 11-03-2004, 07:26
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Dashboard Programming

Also, user bytes 1 & 2 need ".allbits" They're special. Check ifi_default.h
  #9   Spotlight this post!  
Unread 12-03-2004, 15:34
Jeff_Rice's Avatar
Jeff_Rice Jeff_Rice is offline
ElementisRegamusProelium
#1359
Team Role: Programmer
 
Join Date: Dec 2002
Location: Linn County
Posts: 283
Jeff_Rice will become famous soon enoughJeff_Rice will become famous soon enough
Re: Dashboard Programming

Thanks! I'll probably be using this to write some debug code.
__________________
"He said my name is Private Andrew Malone
If you're reading this then I didn't make it home
But for every dream that's shattered another one comes true
This car was once a dream of mine now it belongs to you
And though you may take her and make her your own
You'll always be riding with Private Malone" David Ball, "Private Malone"
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
New dashboard packet spec Ameya Programming 2 08-01-2004 19:59
Dashboard Decoder Release Version 1.0 Now Available! archiver 2000 1 23-06-2002 22:50
New Innovation FIRST control system and the dashboard archiver 2000 0 23-06-2002 22:15
pbasic programming punarhero Programming 4 21-01-2002 23:32
Dashboard Viewer Khalicl13 Technical Discussion 8 15-06-2001 23:36


All times are GMT -5. The time now is 03:57.

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