Log in

View Full Version : What does it mean?


Lilor
12-02-2008, 20:08
what are we suppose to put here:

void Process_Data_From_Local_IO(void)
{
/* Add code here that you want to be executed every program loop. */

}

i got this from fast routines?

psy_wombats
12-02-2008, 20:41
You should put code there that is to be executed every program loop. The 'slow loop' in the normal user_routines runs once every 26 milliseconds, or whenever it gets data from the OI. The loop you're looking at runs every internal software loop, which is a lot faster, and independant from the OI.

Jim E
12-02-2008, 21:58
Unless your using sensors that need near-continuous feedback, probably nothing. The analog to digital converter update call is the only thing there in our code.

Uberbots
12-02-2008, 22:06
We have motor PID controls and sensor processing routines in there. Basically this area is just for that- sensor processing. If you write stuff for it, make sure you dont put any printfs in there.