Personal tools
Document Actions

documentation error/command separators.

Up to Software suite V2 - Middleware - tux_driver

documentation error/command separators.

Posted by eFfeM at May 04. 2008

The driver doc gives a generic template for commands (p 73/74):










A command is formuled in a string with the following format :


<command group>:<command>:<sub
command>:<p0>,<p1>,<p2>, ...,<pn>


Examples


TUX_CMD:WINGS:ON:4,DOWN


RAW_CMD:0x01:0x02:0x00,0x00,0xFE




However on page 110 it gives as example:







TUX_RAW:0x01,0x01,0x00,0x00,0xFE



Here the delimiter for the first two bytes is a comma, not a colon.
Are both acceptable? If so p73 needs updating. Or is the example of p 110 wrong?

Also the example on p 110 is wrong in another area. The code says RAW_CMD, not TUX_RAW (although the latter is perhaps more clean).


Re: documentation error/command separators.

Posted by Rémi Jocaille at May 07. 2008

Yes some mistakes are currently in the documentation. I will correct it when libtuxdriver is in beta version.
About the separators, the parser don't makes any difference between : and ,


RAW_CMD is out of the general canvas (<command group>:<command>:<sub
command>:<p0>,<p1>,<p2>, ...,<pn>;)
Do you have an idea to changes the RAW command in order to insert it in the general canvas ?


Re: documentation error/command separators.

Posted by eFfeM at May 07. 2008

Not really. I was about to rewrite the tokenizer code to make it more rigid, but decided afterwards to leave it as is.


Powered by Ploneboard
You are here: Home Forum Software suite V2 - Middleware - tux_driver documentation error/command separators.

Powered by Plone CMS, the Open Source Content Management System