View Single Post
  #4   Spotlight this post!  
Unread 23-01-2008, 09:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Does reading from the serial port work?

Quote:
Originally Posted by lynca View Post
Have you tried a while loop instead of and if just too make sure it is not a timing problem.
Can you rephrase that? I can't tell what you mean.

As I understand it, the OperatorControl() function is already inside a while loop.

Quote:
I've done a custom echo terminal and usually I start with a while() loop that constantly reads the serial port and then writes back when the input is none null.
I thought that's exactly what I did (assuming you mean "not zero" where you wrote "none null").

Quote:
If the while loop works, you might want to consider putting timestamps to see if there is a latency wait before checking the ReadSerialPort
Could you elaborate on that?