Skip to content
Snippets Groups Projects
Commit a82f9a2f authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

bug fix

parent 30f52e8a
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ def fix_rotor_position(rotor_position, sample_frq, rotor_speed, fix_dt=None, plt ...@@ -69,7 +69,7 @@ def fix_rotor_position(rotor_position, sample_frq, rotor_speed, fix_dt=None, plt
plt.plot(t/sample_frq, spline_fit(x,y)(t)-t*a, label='Spline (detrended)') plt.plot(t/sample_frq, spline_fit(x,y)(t)-t*a, label='Spline (detrended)')
plt.legend() plt.legend()
plt.show() plt.show()
return spline_fit(x,y)(t) return spline_fit(x,y)(t)%360
def find_fix_dt(rotor_position, sample_frq, rotor_speed, plt=None): def find_fix_dt(rotor_position, sample_frq, rotor_speed, plt=None):
"""Find the optimal fix_dt parameter for fix_rotor_position (function above). """Find the optimal fix_dt parameter for fix_rotor_position (function above).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment