Go to Post Of course, someone who can score on all rack levels while hovering autononmously 12 inches off the floor in his own home zone could probably have posted on CD while winning a regional.;) - Richard Wallace [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 28-06-2010, 23:28
BrandonD-1528's Avatar
BrandonD-1528 BrandonD-1528 is offline
Mentor
AKA: Brandon Dusseau
FRC #1528 (Monroe Trojan Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 118
BrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the rough
MARCStats - HELP!

Alright.... I've got the following code for MARCStats when a match's data is entered:

PHP Code:
// Calculate penalized and unpenalized score totals
    
$rupentotal $rscore $rbonus// Unpenalized = Raw + Bonus
    
$rpentotal $rscore $rpen $rbonus// Penalized = Raw - Penalites + Bonus
    
$bupentotal $bscore $bbonus;
    
$bpentotal $bscore $bpen $bbonus;
    
    
// Set penalty minimum
    
if ($rpentotal 0) {
        
$rpentotal 0;
    }
    if (
$bpentotal 0) {
        
$bpentotal 0;
    }
    
    
// Calculate seeding scores and coopertition scores
    // If red wins the match...
    
if ($rpentotal $bpentotal) {
        
$rseed $rpentotal + ($bupentotal);
        
$rcoop = ($bupentotal);
        
$bseed $rupentotal;
        
$bcoop 0;
    }
    
// If blue wins the match...
    
elseif ($bpentotal $rpentotal) {
        
$bseed $bpentotal + ($rupentotal);
        
$bcoop = ($rupentotal);
        
$rseed $bupentotal;
        
$rcoop 0;
    }
    
// If there is a tie...
    
elseif ($rpentotal == $bpentotal) {
        
$rseed $rpentotal + ($rpentotal);
        
$rcoop = ($rpentotal);
        
$bseed $bpentotal + ($bpentotal);
        
$bcoop = ($bpentotal);
    } 
Now... I think these formulas are all working. I was working on it with one of the FTA's (thanks, Keith), and it looks like I was just fed bad data. I've attached the match data and ranking data I've collected, up to match 43.

If you visit this link, you can see that the rankings here don't very well match the actual results. There are, however, some well-defined patterns in the differences with several of the discrepancies. I'll let you guys find those, as I'm too lazy to type out all the differences.

Anyone wanna offer some help?

Note: Ignore the colors in the scores file. Those were for my assistance. The dark blue teams, however, are the ones with perfect ranking data.
Attached Files
File Type: xls rank.xls (21.5 KB, 37 views)
File Type: xls scores.xls (44.5 KB, 31 views)
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus
  #2   Spotlight this post!  
Unread 29-06-2010, 15:21
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: MARCStats - HELP!

The formulas look right to me. Have you tried writing your inputs and outputs to a file to see if they match properly?

Have you also checked that the input data in your system matched the reference that you have?
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #3   Spotlight this post!  
Unread 29-06-2010, 16:30
BrandonD-1528's Avatar
BrandonD-1528 BrandonD-1528 is offline
Mentor
AKA: Brandon Dusseau
FRC #1528 (Monroe Trojan Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 118
BrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the rough
Re: MARCStats - HELP!

Most or all data matches, however, I'm missing the raw data from some of the matches, so those may very well be wrong.
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus
  #4   Spotlight this post!  
Unread 03-07-2010, 18:39
BrandonD-1528's Avatar
BrandonD-1528 BrandonD-1528 is offline
Mentor
AKA: Brandon Dusseau
FRC #1528 (Monroe Trojan Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 118
BrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the rough
Re: MARCStats - HELP!

*bump*
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus
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
HELP!!!! we need help w/ compressors/pneumatics for teleop/autonomous in LABVIEW rokenboker NI LabVIEW 9 05-02-2010 17:10
Grab Frame - Help Help Help... nmihailidis Programming 2 04-03-2007 14:44
section 'InterruptVectorLow' type is non-overlay (was: HELP HELP HELP!!!!!) naor52 Programming 14 24-02-2007 01:19
Help: How do we get a teacher to help? (was: Help) ChaosAlchimey General Forum 13 21-01-2007 11:57


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

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