View Single Post
  #5   Spotlight this post!  
Unread 31-01-2014, 14:31
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Thread scheduler for PID period control ?

Quote:
Originally Posted by Ether View Post
Could you give some additional detail on how you set up the delta time measurement?


[/i]
We did it like this:

Code:
// begin thread
new_time = get_time();
delta_time = new_time - previous_time;
previous_time = new_time;
.
.// do stuff here
.
// end thread
Reply With Quote