|
Re: quick question: TIMERS
Quote:
|
Originally Posted by Xufer
i got my ded reckoning worked out and i have a switch wired up to switch between the two modes how would i do that using case statements?
it should be something like
case1 if (rc_dig_in_10=1)
{auton 1}
case2 else(rc_dig_in10=0)
{auton 2}
i read about them but how would they be used to work with a digital input from the rc
|
You don't need a case statement if you only have two choices.
Code:
if (rc_dig_in_10 == 1) //or just "if (rc_dig_in_10)"
{auton 1}
else
{auton2}
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|