Quote:
Originally Posted by Zme
This is going to sound very very crazy but...
Is there a way for a text input to be taken into the robot from the DS and have it function like a command prompt of sorts, ie. we have a function called runmotorx that takes in a float so we type in runmotorx (float value) and it takes it in and executes it.
is something like this done with reasonable ease? hopefully with out 100's of if statements.
any ideas on how to do this?
|
vxWorks has a facility that allows the execution of commands from a text file as if it were a script.
What you can do with it is execute the same commands you would execute at the vxWorks shell prompt -- no more.
The text file(s) need to be in a file system -- FTP them.
It is not junior programmer stuff though and the interpreter doesn't know how to parse floating point arguments :-(.
Search through Workbench Help for "shell commands" and "ptyDevCreate'.
Unless you are very good *and* willing to work very hard, you probably won't be able to utilize it this year.
Consider making it an off season project.
I can help you with it -- I have example C code I can share.
If you want it, send me an email
gvarndell@hotmail.com