Go to Post Having the foolish belief that you can win a match in which you are completely outgunned will drive you to develop a winning strategy. - OZ_341 [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 11 votes, 5.00 average. Display Modes
  #46   Spotlight this post!  
Unread 12-03-2009, 12:55
Killraine Killraine is offline
Team Robot
AKA: Josh Lucas
FRC #2016 (Mighty Monkey Wrenches)
Team Role: Mentor
 
Join Date: Jul 2006
Rookie Year: 2005
Location: New Jersey
Posts: 76
Killraine will become famous soon enoughKillraine will become famous soon enough
Re: paper: New Scouting Database from Team 2834

Quote:
Originally Posted by Phyrxes View Post
Well the guys from TBA just posted such a request, hopefully people read it and e-mail them pictures.
That was me

Could anyone write a program that downloads the picture at http://www.thebluealliance.net/tbatv.../2009/####.jpg (where #### is the team number) and puts it into a folder? You would just have to run the program once and then drop the spreadsheet in there and it would have all the pictures that are currently on TBA. Basically create a matrix of team numbers (already together as Column A on the sheet "2009 Teams") and then use a loop to go through the list and download the picture to a folder on the desktop.

In psuedo-code:
Code:
for(<Every value in the matrix>)
if(http://www.thebluealliance.net/tbatv/pictures/2009/####.jpg exists)
Download the file at the link to "/Desktop/2009 FRC Pictures";
If you wanted to go all the way, you could have it so when the program creates the matrix, it first checks "/Desktop/2009 FRC Pictures" it only adds the teams from the list that you don't already have. Then, if there is a way to include that program in a startup script for this excel document, you would always have an updated set of photos from TBA.

I'm pretty sure you can do all of this in c++ except maybe the part where excel runs the program before opening the spreadsheet. But then again, its not that much of a hassle to click a .exe before opening up the spreadsheet.
__________________

Last edited by Killraine : 12-03-2009 at 14:38.
Reply With Quote
  #47   Spotlight this post!  
Unread 12-03-2009, 15:44
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: paper: New Scouting Database from Team 2834

Quote:
Originally Posted by Killraine View Post
That was me

Could anyone write a program that downloads the picture at http://www.thebluealliance.net/tbatv.../2009/####.jpg (where #### is the team number) and puts it into a folder? You would just have to run the program once and then drop the spreadsheet in there and it would have all the pictures that are currently on TBA. Basically create a matrix of team numbers (already together as Column A on the sheet "2009 Teams") and then use a loop to go through the list and download the picture to a folder on the desktop.

In psuedo-code:
Code:
for(<Every value in the matrix>)
if(http://www.thebluealliance.net/tbatv/pictures/2009/####.jpg exists)
Download the file at the link to "/Desktop/2009 FRC Pictures";
If you wanted to go all the way, you could have it so when the program creates the matrix, it first checks "/Desktop/2009 FRC Pictures" it only adds the teams from the list that you don't already have. Then, if there is a way to include that program in a startup script for this excel document, you would always have an updated set of photos from TBA.

I'm pretty sure you can do all of this in c++ except maybe the part where excel runs the program before opening the spreadsheet. But then again, its not that much of a hassle to click a .exe before opening up the spreadsheet.
I asked Greg Marra of TBA about a year ago about this. This was his reply.

Quote:
Install the Firefox "Down Them All" plugin. It lets you download all the links on a single page by right clicking then selecting "down them all".

Then you can go here: http://www.thebluealliance.net/tbatv/pictures/2008/ which is a page linking to all of the 2008 team photos.

Just use down them all to grab every single picture in one go
For this year's photo, just substitute 2009 for 2008. This way they can all be in the same folder as the Scouting spreadsheet. "Down Them All" is quite powerful. It will probably give you options not to download a file if it already exists in your folder. Downloading all the pictures every time takes quite a bit of time and is not practical.

Ed Law
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #48   Spotlight this post!  
Unread 12-03-2009, 17:20
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: paper: New Scouting Database from Team 2834

I would like to spend some time to clarify regarding the different rankings OPR, DPR, CCWM and PMR (plus/minus ranking). I tried to explain this in another post but I was rushing and didn't explain fully.

If we look at the system of equations to calculate OPR, it is

A * OPR = B(opr)

B(opr) is assembled by adding the scores of every match each team was involved in

and the system of equations to calculate DPR is

A * DPR = B(dpr)

B(dpr) is assembled by adding the scores of the opposing alliance of every match each team was involved in.

The way I solve for CCWM is

A * CCWM = B(wm) = B(opr)-B(dpr)

A is the same matrix for all 3 systems of equations. I put the winning margin into vector B which is the same as vector B for OPR minus vector B for DPR.

The way PMR is calculated is to first calculate OPR and DPR separately. Then PMR = OPR - DPR

I don't remember the proper name of the math theory but since this is a linear system, you can do some kind of superposition such that

A * PWR = A * (OPR-DPR) = A * OPR - A * DPR = B(opr) - B(dpr)

Hence CCWM and PWR are identical numerically. This was confirmed by Jesse Knight. Having said that, once I have OPR and CCWM which is what my spreadsheet calculates, I can get DPR simply by

DPR = OPR - CCWM

Isn't math great? I learned all that and more when I was in college and there is some use for it afterall.

Ed Law
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #49   Spotlight this post!  
Unread 13-03-2009, 09:50
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Week 3 Regional underway

Regionals at Florida, Peachtree and Pittsburg are underway and started to post results. The spreadsheet that I did ahead of time is working. Don't worry about the error message right now, just click "End" to get out of it. Once every team has played one match, you will not see that error message any more. If necessary I will fix that for Week 4. I will continue to monitor until every team at every week 3 regionals has played at least one match.

I hope this will help you with alliance selection tomorrow.

Ed Law
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #50   Spotlight this post!  
Unread 13-03-2009, 09:55
Phyrxes's Avatar
Phyrxes Phyrxes is offline
Has done the math, have you?
AKA: Dave Button
no team (No Team, Changed Schools)
Team Role: Teacher
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Gainesville VA
Posts: 489
Phyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant future
Re: paper: New Scouting Database from Team 2834

Aside from that error the spread sheet is working flawlessly on my computer here at school this morning (Using Excel 2003).
__________________
Dave Button
Physics and Mathematics Teacher
Wakefield School
The Plains, VA

“Simplify and add lightness.”
― Colin Chapman, Team Lotus
Reply With Quote
  #51   Spotlight this post!  
Unread 13-03-2009, 10:45
Killraine Killraine is offline
Team Robot
AKA: Josh Lucas
FRC #2016 (Mighty Monkey Wrenches)
Team Role: Mentor
 
Join Date: Jul 2006
Rookie Year: 2005
Location: New Jersey
Posts: 76
Killraine will become famous soon enoughKillraine will become famous soon enough
Re: paper: New Scouting Database from Team 2834

I don't know why I didn't think to go to http://www.thebluealliance.net/tbatv/pictures/2009/ yesterday. Should have been the first place I checked.

Thanks.
__________________
Reply With Quote
  #52   Spotlight this post!  
Unread 13-03-2009, 12:19
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: paper: New Scouting Database from Team 2834

I uploaded a new version "Team_2834 2009_Scouting_Database Week 3c.zip" to clean up some formating issues. I also fixed the error message when not every team has played one match yet. There was also a small bug that I fixed. For example in Pittsburg, I had 38 teams listed but there are only 37 teams. One team must have dropped out after I put the list in a few months ago. This produced an error. The new version will take care of this problem.

When I have time, I will fix the score prediction. Originally this program was written to run only after a regional is completed. Now we want it to run during a regional and some things were not planned. For example, in score prediction, you may notice the numbers predicted are very small when teams have played only a few matches. This is because the matrix A was assembled with all the scheduled matches. However vector B only has scores of finished matches. This is why the answer x is smaller than expected. I need to scale the answer x based on number of matches played and number of matches scheduled.

If anybody sees any problems with the spreadsheet, please let me know.

Ed Law
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #53   Spotlight this post!  
Unread 13-03-2009, 13:18
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: paper: New Scouting Database from Team 2834

I fixed the score prediction. It turned out to be easier than I thought. The new version now is "Team_2834 2009_Scouting_Database Week 3d.zip". I didn't do an extensive study yet, but some of the score predictions are amazingly accurate.

Ed Law
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #54   Spotlight this post!  
Unread 13-03-2009, 13:25
Killraine Killraine is offline
Team Robot
AKA: Josh Lucas
FRC #2016 (Mighty Monkey Wrenches)
Team Role: Mentor
 
Join Date: Jul 2006
Rookie Year: 2005
Location: New Jersey
Posts: 76
Killraine will become famous soon enoughKillraine will become famous soon enough
Re: paper: New Scouting Database from Team 2834

After updating the spreadsheet, I tried to Query team 330 and nothing came up in that window. It would be nice to be able to still use the Query function while you are at an in-progress competition (Situation: At the regional, we are paired up with team #### and team #### in our next qualification match. We don't have much information on them yet and this is their first regional this year, but we want a general idea what our strategy will be. A quick look-up in the spreadsheet shows us there records and a vague idea what their OPR/CCWM are)
__________________
Reply With Quote
  #55   Spotlight this post!  
Unread 13-03-2009, 13:27
Killraine Killraine is offline
Team Robot
AKA: Josh Lucas
FRC #2016 (Mighty Monkey Wrenches)
Team Role: Mentor
 
Join Date: Jul 2006
Rookie Year: 2005
Location: New Jersey
Posts: 76
Killraine will become famous soon enoughKillraine will become famous soon enough
Re: paper: New Scouting Database from Team 2834

Quote:
Originally Posted by Ed Law View Post
I fixed the score prediction. It turned out to be easier than I thought. The new version now is "Team_2834 2009_Scouting_Database Week 3d.zip". I didn't do an extensive study yet, but some of the score predictions are amazingly accurate.

Ed Law
I'm not seeing 3d. In fact I'm not seeing 3c anymore either... Anyone else have this problem?
__________________
Reply With Quote
  #56   Spotlight this post!  
Unread 13-03-2009, 13:40
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: paper: New Scouting Database from Team 2834

Quote:
Originally Posted by Killraine View Post
I'm not seeing 3d. In fact I'm not seeing 3c anymore either... Anyone else have this problem?
It is there now. You are too quick for me. Are you at a regional now?

Ed
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #57   Spotlight this post!  
Unread 13-03-2009, 14:02
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: paper: New Scouting Database from Team 2834

Quote:
Originally Posted by Killraine View Post
After updating the spreadsheet, I tried to Query team 330 and nothing came up in that window. It would be nice to be able to still use the Query function while you are at an in-progress competition (Situation: At the regional, we are paired up with team #### and team #### in our next qualification match. We don't have much information on them yet and this is their first regional this year, but we want a general idea what our strategy will be. A quick look-up in the spreadsheet shows us there records and a vague idea what their OPR/CCWM are)
Again the original plan was transfer the data only after a regional is completed, I transfer the data from the sheet from that regional to sheets "WM data" and "OPR data" for use by the Query sheet. If we want to transfer during a regional also, I need to reprogram that part. Right now it only allow one transfer per regional. If you transfer more than one time, it will think that it is a new regional because it looks for blank space and dump the data there.

For now, you have to refer to the sheet for your current regional and find the data there for the teams which is not that hard. Actually I think it is more convenient to have all the teams you are competing with at your regional all on one page than to have to query one team at a time. The Query was meant to be printed out before you get to the regional or to be printed out after your scouts take pictures of all the robots on Thursdays.

Thanks for the suggestions.

Ed Law
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #58   Spotlight this post!  
Unread 13-03-2009, 22:19
Team 1746 Team 1746 is offline
Registered User
FRC #1746
 
Join Date: Mar 2009
Location: georgia
Posts: 1
Team 1746 is an unknown quantity at this point
Re: paper: New Scouting Database from Team 2834

Peachtree regional is not updating. All other regional seem to be updating OK.

Error message

run time error 13

type mismatch
Reply With Quote
  #59   Spotlight this post!  
Unread 14-03-2009, 20:14
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: paper: New Scouting Database from Team 2834

Quote:
Originally Posted by Team 1746 View Post
Peachtree regional is not updating. All other regional seem to be updating OK.

Error message

run time error 13

type mismatch
The reason Peachtree is not updating is because they did not broadcast the ranking information. All the links in the spreadsheet are correct.
__________________
Please don't call me Mr. Ed, I am not a talking horse.
Reply With Quote
  #60   Spotlight this post!  
Unread 14-03-2009, 22:11
Phyrxes's Avatar
Phyrxes Phyrxes is offline
Has done the math, have you?
AKA: Dave Button
no team (No Team, Changed Schools)
Team Role: Teacher
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Gainesville VA
Posts: 489
Phyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant futurePhyrxes has a brilliant future
Re: paper: New Scouting Database from Team 2834

So incase anybody was wondering this spreadsheet doesn't appear to work with OpenOffice.org Calc.
__________________
Dave Button
Physics and Mathematics Teacher
Wakefield School
The Plains, VA

“Simplify and add lightness.”
― Colin Chapman, Team Lotus
Reply With Quote
Reply


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
paper: 2007 Championship Event Scouting Database, presented by Team 1114 Karthik Extra Discussion 18 10-04-2007 17:02
paper: Waterloo Regional Scouting Database astephen68 Extra Discussion 3 04-03-2007 19:34
paper: Scoring for scouting database wheeler Extra Discussion 1 27-01-2007 15:56
paper: 2006 Excel Scouting database Greg Needel Scouting 11 20-04-2006 21:41
White Paper Discuss: Scouting database Marjory Frosty Extra Discussion 0 08-01-2006 19:03


All times are GMT -5. The time now is 08:53.

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