Skip to content

Commit

Permalink
Removed tau and rate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lejafar committed May 9, 2017
1 parent 57838c3 commit fb27bb8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions examples/symtrack_cccf_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ void usage()
printf(" s : signal-to-noise ratio, default: 30 dB\n");
printf(" w : timing pll bandwidth, default: 0.02\n");
printf(" n : number of symbols, default: 4000\n");
printf(" t : timing phase offset [%% symbol], t in [-0.5,0.5], default: -0.2\n");
}

int main(int argc, char*argv[])
Expand All @@ -48,8 +47,6 @@ int main(int argc, char*argv[])
float noise_floor = -60.0f; // noise floor [dB]
float SNRdB = 30.0f; // signal-to-noise ratio [dB]
float bandwidth = 0.10f; // loop filter bandwidth
float tau = -0.2f; // fractional symbol offset
float rate = 1.001f; // sample rate offset
float dphi = 0.02f; // carrier frequency offset [radians/sample]
float phi = 2.1f; // carrier phase offset [radians]

Expand Down Expand Up @@ -89,12 +86,6 @@ int main(int argc, char*argv[])
} else if (num_symbols == 0) {
fprintf(stderr,"error: number of symbols must be greater than 0\n");
exit(1);
} else if (tau < -1.0f || tau > 1.0f) {
fprintf(stderr,"error: timing phase offset must be in [-1,1]\n");
exit(1);
} else if (rate > 1.02f || rate < 0.98f) {
fprintf(stderr,"error: timing rate offset must be in [1.02,0.98]\n");
exit(1);
}

unsigned int i;
Expand Down

2 comments on commit fb27bb8

@BelmY
Copy link

@BelmY BelmY commented on fb27bb8 Aug 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid errors doing "make examples" you should remove also these lines (66 and 67):

case 't': tau = atof(optarg); break;
case 'r': rate = atof(optarg); break;

Best R.
BelmY

@lejafar
Copy link
Contributor Author

@lejafar lejafar commented on fb27bb8 Aug 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed my mistake but awaited a more noticeable commit before making another PL, that commit unfortunately never came ... still no noticeable commit but created the pull request #97 anyway

Please sign in to comment.