vibration_analyze.py: Don't use the peak power for D_guess
authorW. Trevor King <wking@tremily.us>
Sat, 4 May 2013 22:27:21 +0000 (18:27 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 4 May 2013 22:27:21 +0000 (18:27 -0400)
commite0b67bd92319e6da1e804af794c33c7fbfd4cfc1
tree9dffedf8ee84178e3b3ce0d19f6508c722fee026
parent7b9cdcc69a1fd157a644edbf00fa4f6ebdeb0767
vibration_analyze.py: Don't use the peak power for D_guess

Use the power at the Nyquist frequency.  This is what I'd meant to use
back in 82cd9c1 (Massive rewrite (v 0.6) to base everything on Cython
and revamped pypiezo, 2011-04-21), but I goofed.  Luckily, the fitting
algorithm was generally able to recover from my poor heuristic, but
using a borked heuristic is not ideal.

The fixed heuristic should reduce the number of poorly fit cases, and
improve convergence efficiency for all cases.
calibcant/vibration_analyze.py