Thread: PID crossing 0
View Single Post
  #16   Spotlight this post!  
Unread 26-05-2011, 18:28
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,102
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: PID crossing 0

Quote:
Originally Posted by ratdude747 View Post
I crunched both examples and got 360. maybe my calculator got it wrong, but I think the floor is the issue since it will gives either 0 or 1 and thus either 0 or 360.
For Example1,

0.5+(-357)/360 is equal to -0.4917

The floor of -0.4917 is -1.

Are you saying that your calculator returned 0 or 1, instead of -1 ??






Last edited by Ether : 26-05-2011 at 18:56.
Reply With Quote