Thread: OPR
View Single Post
  #6   Spotlight this post!  
Unread 25-02-2015, 19:19
plnyyanks's Avatar
plnyyanks plnyyanks is online now
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: OPR

Quote:
Originally Posted by GeeTwo View Post
I don't see the OPR anywhere in their API; am I missing something, or did you just mean that the data required to plug into an OPR calculation is there?
The API will return the result of the calculations for OPR, DPR, and CCWM. See here in the docs.

Hit
Code:
/api/v2/event/<event-key>/stats
It'll return an output like:
Spoiler for Lots of data:

Code:
➜  phil@fedora ~  curl --header "X-TBA-App-Id:foo:bar:baz" http://www.thebluealliance.com/api/v2/event/2014cthar/stats
{"oprs": {"558": 61.03862458660732, "571": 25.26315867245658, "1124": 41.56940261999079, "4572": 22.657822140768516, "238": 22.044939318938813, "3146": 12.63390393300261, "178": 46.950456367359891, "177": 92.226404149116206, "4557": 43.334926949271072, "175": 81.334997593159528, "230": 53.027513648529002, "236": 58.096099167356243, "2785": 11.601348126111738, "3555": 7.2284300176004974, "3104": 14.702459074944898, "173": 9.5159523225474345, "839": 19.960465485473357, "2170": 22.066703794171406, "181": 49.492453525796911, "3182": 26.955221924000668, "3634": 34.152969306235953, "4097": 28.571656205234454, "716": 57.420439555814042, "5142": 15.649331351710339, "999": 36.426610246955612, "3525": 50.453711167618096, "5129": 27.586754386014597, "228": 52.10253623902166, "4628": 17.892949898607437, "95": 29.973898403369855, "176": 65.769697919858061, "1991": 53.614388815829997, "4055": 51.617441033456331, "3464": 37.843662949585344, "3566": 31.888458744244957, "4958": 33.821768467384359, "1687": 12.329197344290588, "1740": 7.5272579695618127, "2067": 39.32265324466966}, "ccwms": {"558": 47.714841929054501, "571": -2.2244726240688477, "1124": 32.556983571913001, "4572": -6.0853698077920315, "238": -35.070117174800544, "3146": -36.885966963297193, "178": 14.96298531132085, "177": 71.191849807978272, "4557": -7.7570855600831052, "175": 30.835262590761605, "230": 3.6399453862621081, "236": 20.44387440579483, "2785": -37.350014006119174, "3555": -34.672659512804991, "3104": -28.249324008158332, "173": -37.577530295276226, "839": -19.803791613841952, "2170": -27.524965779988744, "181": 3.7024741266095287, "3182": -8.8673292856880401, "3634": 9.0289537858067348, "4097": -28.403823457387144, "716": 25.671255492674394, "5142": -18.532183768327222, "999": 16.38015834182071, "3525": 27.23416882060123, "5129": -15.548754966962644, "228": 8.7310226121904542, "4628": 7.01561775548765, "95": 5.8413142346092108, "176": 32.851548640364612, "1991": 37.027081101957357, "4055": 13.387511797720734, "3464": 1.4555715944903778, "3566": -15.204361189187283, "4958": -13.407078085909482, "1687": -23.514376735710577, "1740": -21.265070753703672, "2067": 8.2718542816890643}, "dprs": {"558": 13.32378265755275, "571": 27.487631296525407, "1124": 9.0124190480777919, "4572": 28.743191948560586, "238": 57.115056493739317, "3146": 49.519870896299814, "178": 31.987471056039084, "177": 21.034554341137934, "4557": 51.092012509354177, "175": 50.499735002397919, "230": 49.387568262266932, "236": 37.652224761561435, "2785": 48.951362132230891, "3555": 41.901089530405542, "3104": 42.951783083103251, "173": 47.093482617823668, "839": 39.764257099315302, "2170": 49.591669574160193, "181": 45.789979399187374, "3182": 35.822551209688733, "3634": 25.12401552042925, "4097": 56.975479662621588, "716": 31.749184063139648, "5142": 34.181515120037545, "999": 20.046451905134909, "3525": 23.219542347016823, "5129": 43.135509352977216, "228": 43.371513626831245, "4628": 10.877332143119782, "95": 24.13258416876063, "176": 32.918149279493427, "1991": 16.587307713872672, "4055": 38.229929235735582, "3464": 36.388091355095021, "3566": 47.092819933432281, "4958": 47.228846553293849, "1687": 35.843574080001126, "1740": 28.792328723265495, "2067": 31.05079896298054}}
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android

Last edited by plnyyanks : 25-02-2015 at 19:22.
Reply With Quote