oscar, go to the downloads section of the vex labs site, and download the “Vex Starter Code” zip file. Extract it and open the workspace file located among the extracted files. Inside will be code that compiles, from there you can modify it to do what you want.
I have the starter code. There is so much going on…I was hoping for somthing a little more simplified than that. Im just looking for a few simople examples of how to interact with the vex from my laptop.
which ports do what, and how to read and invoke them.
Ive looked everywhere, but Im just getting more confused.
Im pretty familiar with C, but a newbie to robotics.
Could you post all of the code that has that line?
Also, if you go into one of the header files (.h) you should see a section where all of the functions are defined, it should look something like this.
void FunctionName ( int parameter ) ;
unsigned char Function_Name ( int parameter, unsigned char parameterTwo, int parameterThree ) ;
void Another_Function ( void ) ;
This will just give more information about the function. It helps …
I think the problem here is that you are using stdio.h. Download the starter code (if you don’t already have it) and find prinf_lib.h and printf_lib.c. Add those files to your project after removing stdio.h.
Also, could you be a little more specific on your objective? Are you simply trying to print information about motors/variables/sensors to the terminal window in MPLab, or is it more complicated than that?