Quote:
Originally Posted by kamocat
The example is excellent, but is missing a WAIT function. The input to the PID function overrides automatic delta time calculation, but does not actually slow the loop down.
|
Thanks for pointing that out Marshal. I've made a note to update and re-post the attachment.
I have a question though:
This "automatic delta time calculation" ... where in the documentation is that explained? The help file says only this:
Quote:
|
dt (s) specifies the interval, in seconds, at which this VI is called. If dt (s) is less than or equal to zero, this VI uses an internal timer with a one millisecond resolution. The default is –1.
|
... nothing in there about automatic delta time calculation.
Quote:
|
Note that you are not restrained to the 50hz loop rate. If you want your PID to respond more quickly, you can increase the loop rate. 50hz is simply the maximum rate you can receive new data from your joysticks.
|
The 120+ pound robot has a substantial moment of inertia so I think increasing the PID rate beyond 50Hz is probably not going to make a noticeable difference in response.