View Single Post
  #10   Spotlight this post!  
Unread 25-01-2003, 23:39
JoshB JoshB is offline
Registered User
#1015
 
Join Date: Dec 2002
Location: Ann Arbor
Posts: 6
JoshB is an unknown quantity at this point
Quote:
Originally posted by JoshB

3)
Idea:
This just came to me as I was typing, so it is completely untested, I'll verify it later today.... But if the packet assignment order is what I think it is, then you might be able to get away with using your rc_swA/B varibles as the junk variables. Let them get set to the trash you don't want, and then finally set to the correct values.
Yes you would get a Basic Init Error if you don't have the correct constants for the first init, basic on the way first has it setup... I was suggesting using a second init setup.... that aside.... I tested my third idea and it works as I thought...

Citing the specific problem of this thread, you can use the following command.

Serin COMA\COMB, INBAUD, [rc_swA, rc_swA, rc_swA,rc_swB]

The first two "rc_swA"s will get set to the OI digital data, but due to the assignment order, rc_swA will be set to the correct value, and so would rc_swB, the rest of the packet would be ingored, since no variables were defined for them.

Hope this helps... if it doesn't make since, post it (of course) and I'll try to clearify.