View Single Post
  #9   Spotlight this post!  
Unread 18-02-2008, 21:11
RyanW RyanW is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: MD
Posts: 40
RyanW has a spectacular aura aboutRyanW has a spectacular aura about
Re: IR button coding rules

Sorry, I guess I misread their response. I interpreted "one-to-one mapping" as "You still can't have more than four commands." Upon rereading, it looks like even what I was describing wouldn't be allowed - you can set variables, but each individual button can only be used to set one thing. Apparently, that hasn't been drummed into my head enough times - even with having to correct other people about it!

Jacob, one-to-one mapping seems to be between variables and results, not between command sets and results. You could set A, B, C, and D, and then have your code execute a different method depending on which of those was true. You couldn't set A and B, and then execute methods based on AA vs. AB vs. BA vs. BB