Permalink
Browse files

Get rid of calc_loop_coeff, we want gains not taus.

  • Loading branch information...
1 parent 51d24d1 commit d728a5e213fcd49f8a2a1a4074c17a2781e50fbc @fnoble committed Feb 6, 2013
Showing with 0 additions and 11 deletions.
  1. +0 −2 include/track.h
  2. +0 −9 src/track.c
View
@@ -39,8 +39,6 @@ typedef struct {
double sat_vel[3];
} navigation_measurement_t;
-void calc_loop_coeff(double BW, double zeta, double k, double *tau1,
- double *tau2);
void calc_navigation_measurement(u8 n_channels, channel_measurement_t meas[],
navigation_measurement_t nav_meas[],
View
@@ -27,15 +27,6 @@
* Functions used by the tracking loops.
* \{ */
-void calc_loop_coeff(double BW, double zeta, double k, double *tau1,
- double *tau2) {
- /* Solve for the natural frequency. */
- double omega_n = BW*8*zeta / (4*zeta*zeta + 1);
-
- *tau1 = k / (omega_n*omega_n);
- *tau2 = 2*zeta/omega_n;
-}
-
/** Calculate coefficients for a 2nd order digital PLL / DLL loop filter.
*
* A second order digital PLL consists of a first-order filter and a

0 comments on commit d728a5e

Please sign in to comment.