|
From: Sawyer F. <mi...@ca...> - 2011-03-21 01:23:50
|
hey, i've a quick fix to ctrlutil.unwrap to make it successfully unwrap
phase changes of greater than 4pi:
in this section:
for k in range(len(angle)):
# See if we need to account for angle wrapping
if (angle[k] - last > period/2):
wrap = -period
elif (last - angle[k] > period/2):
wrap = period
i've replaced setting the wrap value with incrementing it:
for k in range(len(angle)):
# See if we need to account for angle wrapping
if (angle[k] - last > period/2):
wrap -= period
elif (last - angle[k] > period/2):
wrap += period
also, what's the procedure for getting commit access to the repository?
------------------------
Sawyer B. Fuller
California Institute of Technology
http://www.cds.caltech.edu/~minster/ <http://alumni.media.mit.edu/~minster/>
|