Skip to content

Conversation

@saullipton
Copy link

Changed millis() to micros() to allow the function to run as fast as one can get it to - e.g. on a Due.
For PID loops, the essential performance element is the speed at which the loop can be closed. It makes little sense to limit this to 1ms.
Millis() will cycle over after 70 minutes, however the code looks like it will only skip one PID execution at that time.

Signed off 11-9-2018 Saul Lipton

Changed millis() to micros() to allow the function to run as fast as one can get it to - e.g. on a Due. 
For PID loops, the essential performance element is the speed at which the loop can be closed. It makes little sense to limit this to 1ms. 
Millis() will cycle over after 70 minutes, however the code looks like it will only skip one PID execution at that time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant