
17-03-2008, 16:16
|
 |
...
AKA: Jesus
 FRC #0647 (Cyber Wolf Corps)
Team Role: Programmer
|
|
Join Date: Dec 2007
Rookie Year: 2008
Location: Killeen, Texas (Fort Hood)
Posts: 352
|
|
|
Re: IR board
Quote:
Originally Posted by SL8
What im saying is is that the actual typing replace with,
unsigned char IRSingal = 0 ;
if(func1 ==1 ){
IRSingal = 1;
}
else if(func2 ==1 ){
IRSignal = 2;
}
else if(func3 ==1 ){
IRSignal = 3;
}
else if(func4 == 1){
IRSignal = 4;
}
switch(IRSignal){
|
I mean...
unsigned char IRSignal = 0 ;
if(func1 ==1 ){
IRSignal = 1;
}
else if(func2 ==1 ){
IRSignal = 2;
}
else if(func3 ==1 ){
IRSignal = 3;
}
else if(func4 == 1){
IRSignal = 4;
}
switch(IRSignal){
__________________
|