From: <mur...@us...> - 2011-04-01 04:46:36
|
Revision: 143 http://python-control.svn.sourceforge.net/python-control/?rev=143&view=rev Author: murrayrm Date: 2011-04-01 04:46:30 +0000 (Fri, 01 Apr 2011) Log Message: ----------- copied Sawyer's unwrap change to 0.4b Modified Paths: -------------- branches/control-0.4b/src/ctrlutil.py Property Changed: ---------------- branches/control-0.4b/src/ctrlutil.py Modified: branches/control-0.4b/src/ctrlutil.py =================================================================== --- branches/control-0.4b/src/ctrlutil.py 2011-03-31 16:43:19 UTC (rev 142) +++ branches/control-0.4b/src/ctrlutil.py 2011-04-01 04:46:30 UTC (rev 143) @@ -73,9 +73,9 @@ for k in range(len(angle)): # See if we need to account for angle wrapping if (angle[k] - last > period/2): - wrap = -period + wrap -= period elif (last - angle[k] > period/2): - wrap = period + wrap += period # Update the last value we have sene last = angle[k] Property changes on: branches/control-0.4b/src/ctrlutil.py ___________________________________________________________________ Added: svn:mergeinfo + /trunk/src/ctrlutil.py:140-142 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |