View Single Post
  #12   Spotlight this post!  
Unread 07-01-2008, 00:09
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Multiple IR Key codes to activate four hybrid operating modes

Quote:
Originally Posted by EricH View Post
Can we put the lawyers to bed now? I'm pretty sure the intent is FOUR buttons control FOUR commands, in a 1:1 ratio.
I'm mostly interested in figuring out what a "command" is so I can make sure that my students are doing it properly, and so I can explain what they're doing wrong when the issue inevitably arises. I could envision somebody writing this piece of code:
Code:
int *fwd[] = {&relay1_fwd, &relay2_fwd, &relay3_fwd, &relay4_fwd, &relay5_fwd};
int *rev[] = {&relay1_rev, &relay2_rev, &relay3_rev, &relay4_rev, &relay5_rev};
int index = 0;

while(true){
  if(button == 1)
    index = (index + 1) % 5;
  if(button == 2){
    *(fwd[index]) = !*(fwd[index]);
    *(rev[index]) = !*(rev[index]);
  }
}
And their index card reads:
Code:
Button 1: Chooses a relay
Button 2: Toggles a relay
So, using two buttons, I am able to turn any of five relays on or off. My command set never changes. I'd call this two commands. I suspect that some people would call it ten, but that seems like a bizarrely strict interpretation, and I'd expect a lot of askance looks from anyone I tried to tell that to. If that is indeed the case, I expect that a lot of teams won't do it properly for a lack of understanding, and that it will be impossible to police.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_