|
Re: Help with linking OI and RC over Internet....
If memory serves (and it may not, it's been a while since I touched one of these) the standard C functions printf() and scanf() are tied to that port, allowing scanf() to receive data from it and printf() to output. The only problem I can see with that is scanf() may be blocking and thus might break the timing of the code. Kevins Bells and Whistles 2006 camera code used the serial port for receiving single byte commands to control the camera, maybe look in to how he did it? I think it involved accessing the serial received buffer and plucking the data right out of there, which is how I typically use serial ports on 8-bit micros.
If this reply made no sense to you, sorry, I'm just getting up (Colleges are full of strange germs that tend to crush freshman). If you'd like to talk more one on one I can try to elaborate on it for you.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|