View Single Post
  #14   Spotlight this post!  
Unread 27-04-2016, 18:14
ahartnet's Avatar
ahartnet ahartnet is offline
Registered User
AKA: Andrew Hartnett
FRC #5414 (Pearadox)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2005
Location: Houston, Texas
Posts: 194
ahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant futureahartnet has a brilliant future
Re: Hot match alert?

Without taking the time to really think about implementation (or calibration), this is roughly what I would do for "hot matches":

Code:
if(
BlueAllianceOPRinTopXXpercent || BlueAllianceOPRinTopXXpercent (I'm not sure if I'd do an "or" or an "and" here)
OR 
two red alliance in top 20 vs two blue alliance in top 20
OR
(>=1 red alliance in top 10 vs >=1 blue alliance in top 10) && (abs(RedAllianceOPR - BlueAllianceOPR) < 10)
I've never looked at the blue alliance API, but I would think all of that information should be available. I'd also think that for the first 3 or so matches I'd use the existing OPR available rather than the OPR from champs. Intent would be to be looking for matches that should either be close (and at least somewhat important), impact standing, or should be high scoring.
__________________
Team 451 The Cat Attack, Student Alumni (2005)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 5414 Pearadox, Mentor (2015-Present)

Last edited by ahartnet : 27-04-2016 at 18:16.
Reply With Quote