|
Re: IR button coding rules
Quote:
Originally Posted by RyanW
Beyond that,
If you're using rc_dig_in08 to 11 as your IR buttons, this isn't legal. Any individual IR command should only make reference to one of the buttons, UNLESS you use combinations of buttons to minimize interference, and still send EXACTLY four commands. So you need to move if(rc_dig_in09==1&&rc_dig_in10==1) out of your else if.
|
Sorry, but the bold portion is out. The Q&A has long since eliminated this, as has Update #3. No sequences of buttons.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons
"Rockets are tricky..."--Elon Musk

Last edited by EricH : 17-02-2008 at 15:37.
|