![]() |
Re: Does reading from the serial port work?
1 Attachment(s)
So, everyone knows I screwed up on this one by rushing. It shows what happens with a "QUICK" fix. My mistake here was my own and not a reflection on intelitek or as we don't even support WPILIB functions that are not in the tree.
My orginal For Loop was: Code:
for ( x = byteswaiting ; byteswaiting == x ; x++)Code:
for ( x = 0 ; byteswaiting == x ; x++)Now having had time to look at it again. I saw my problem and have fixed it. This version will accept 4 keystrokes "bytes" and then print them to screen. Please let me know if you see an issue. The function must be call in a while loop and added to userincludes.h. |
Re: Does reading from the serial port work?
Quote:
EasyC has been good to us, sorry it hasn't worked out so good for you. However knowing you Alan, I can understand you'd like more freedom in coding your custom code. Our programming team has found Mr. Millers WPILIB pdf handy, we've read it through and through and understand what built in functions we can use. We've tried to use what is available. Our custom RS-232 interface parser was the first time we added our own C File to EasyC, and included it for compile. Doing it this way, gave the "old" school feel and allowed for the flexibility of customized functions we needed to create to interface to the vision board. Maybe you can take the same approach. Write your own custom C Files outside EasyC in notepad or I prefer NotePad + +, and include your header files etc, but allow the C Code blocks for your beginner programs and let yourself and advance programmers code in the C File with custom functions. Of course there will be some overhead as if you’re doing your own functions you’re not using utilizing the WPILIB. Anyway, I just wanted to give our perspective on EasyC. I am sure we could share what we have, but I'll have to check with Nathan first if he wants to allow it now (week 3 in build season). Nathan: our master programmer, which BTY, I am in dear now to chant "Nathan is the man", a young bright home schooler I hope you can chat with some day. Chris - THRUST : 1501 : Huntington, Indiana |
| All times are GMT -5. The time now is 16:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi