Test of pmic GPA with filter
Dependencies: mbed
Fork of nucf446-cuboid-balance1_strong by
Diff: GPA.cpp
- Revision:
- 21:d9bda15377e2
- Parent:
- 19:6095f7d1c56a
- Child:
- 22:715d351d0be7
--- a/GPA.cpp Thu Apr 05 10:22:41 2018 +0000 +++ b/GPA.cpp Mon Apr 09 07:06:04 2018 +0000 @@ -1,6 +1,6 @@ /* GPA: frequency point wise gain and phase analyser to measure the frequency - respone of dynamical system + respone of a dynamical system hint: the measurements should only be perfomed in closed loop assumption: the system is at the desired steady state of interest when @@ -22,17 +22,17 @@ fMax: maximal desired frequency that should be measured in Hz NfexcDes: number of logarithmic equaly spaced frequency points NperMin: minimal number of periods that are used for each frequency point - NmeasMin: maximal number of samples that are used for each frequency point + NmeasMin: minimal number of samples that are used for each frequency point Ts: sampling time Aexc0: excitation amplitude at fMin Aexc1: excitation amplitude at fMax hints: the amplitude drops with 1/fexc, if you're using - Axc1 = Aexc0/fMax the d/dt exc = const., this is recommended + Axc1 = Aexc0/fMax then d/dt exc = const., this is recommended if your controller does not have a rolloff. if a desired frequency point is not measured try to increase Nmeas. - pseudo code for a closed loop measurement with a proportional controller: + pseudo code for a closed loop measurement with a controller C: excitation input at (1):