Firstly, I apologize for two things:
1. You've probably heard this question a thousand times before and are
sick of it
2. This is more my ignorance about serial communications and programming
I've been trying to get my oopic to move a dc motor when I send
commands like "fw" or "bk". I tried looking in OOpic programming book
and googled online. I see lots of example on how to send a message from
the oopic back to a computer, but not the opposite. I managed to find
an example program that did flow control and everything. It used two
oBuffer objects to store two commands "red" and "green" to light two
LEDs. I needed more commands and the compiler complained that I
couldn't add more objects because of memory. So... I would change the
value of the obuffer object inline (in the loop) and then compare the
value against the actual serial buffer. Not everything was working
right. It seemed that if I changed the object more than twice strange
things would happen. End of long story and on to the question.
Is there a detailed template or flowchart for how this is done? I would
much prefer if there was a program someone could just post, but I
understand if no one wants to do this. I don't mind the hard work of
programming it as long as I understand what I need to do. I just don't
understand how this is supposed to be done.
Thanks,
Mike
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
No comments:
Post a Comment