Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   What does it mean? (http://www.chiefdelphi.com/forums/showthread.php?t=63912)

Lilor 12-02-2008 20:08

What does it mean?
 
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

Re: What does it mean?
 
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

Re: What does it mean?
 
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

Re: What does it mean?
 
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.


All times are GMT -5. The time now is 00:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi