![]() |
IR board
Guess what, shadow returns with more questions....
First concerns post on usfirst.org, does the IR plug in work for robot contoller? If not were i can iget one, or is it easier to make one (one week till regional)? When IR board is not active (signal 1 not sent) will switch 1 on the robot controller read a 1 or 0 (got 4 options on this 2 yes, 2 no so im not sure)? Code: PHP Code:
If this code will not work what changes must be made? If this will work, after corrected, or not, were should it be inserted |
Re: IR board
well thats a very long post.
so ill post the next question on a new post If im incorrect on any thing please tell me. The gear tooth sensor doen't automatical count the teeth that pass a program must, this being true, were can i find one? |
Re: IR board
I think you have misswritten your names, ie irsingal==1,ir signal. and your variable set as unsigned char will probably save memory.
|
Re: IR board
idk, you wrote it.
should it be that? the amazing thing is that your only on when i, i even check your other postes, it's kind of freaky. |
Re: IR board
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){ |
Re: IR board
Quote:
|
Re: IR board
im signing off for the night, so if anyone else has something to add ill check in the morning
|
Re: IR board
Quote:
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){ |
| All times are GMT -5. The time now is 00:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi