View Single Post
  #7   Spotlight this post!  
Unread 31-01-2014, 22:26
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,063
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Thread scheduler for PID period control ?

Quote:
Originally Posted by Joe Ross View Post
I just ran the following code:

Code:
    double prevTime = 0;
    public void teleopPeriodic() {
        double time = Timer.getFPGATimestamp();
        System.out.println(time-prevTime);
        prevTime=time;
    }
And got the following output...
I took the liberty of plotting it. Attached.


Attached Thumbnails
Click image for larger version

Name:	TeleOp jitter.png
Views:	38
Size:	16.9 KB
ID:	16040  Click image for larger version

Name:	TeleOp jitter2.png
Views:	32
Size:	14.4 KB
ID:	16041  

Last edited by Ether : 31-01-2014 at 22:36. Reason: added 2nd graph
Reply With Quote