Skip to content

Commit

Permalink
Added in a #define in config.h (MAX_ACQS_PER_PVT) to control speed of…
Browse files Browse the repository at this point in the history
… acquisition. Made sure usage output in init.cpp is correct.
  • Loading branch information
gpssim committed Jul 27, 2009
1 parent 1928a4b commit 51b78da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion includes/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*----------------------------------------------------------------------------------------------*/
#define SOFTWARE_VERSION_MAJOR (2)
#define SOFTWARE_VERSION_MINOR (6)
#define SOFTWARE_VERSION_POSTFIX (1)
#define SOFTWARE_VERSION_POSTFIX (2)
/*----------------------------------------------------------------------------------------------*/

/* The most important thing, the NUMBER OF CORRELATORS IN THE RECEIVER and the NUMBER OF CPUs */
Expand Down Expand Up @@ -70,6 +70,7 @@
/*----------------------------------------------------------------------------------------------*/
#define MASK_ANGLE (0) //!< Add this many degrees to altitude dependant mask
#define ACQ_MODULO_WEAK (8) //!< Do this many weak acqs per 32 PRN strong search
#define MAX_ACQS_PER_PVT (12) //!< Max # of acquisitions per PVT
#define MAX_DOPPLER_ABSOLUTE (15000) //!< Limit any and all Dopplers the be within this range
#define MAX_DOPPLER_STRONG (15000) //!< Cold Doppler search space for strong signal
#define MAX_DOPPLER_MEDIUM (15000) //!< Cold Doppler search space for strong signal
Expand Down
2 changes: 1 addition & 1 deletion main/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void usage(char *_str)
{
fprintf(stdout,"\n");
//fprintf(stdout,"usage: [-c] [-v] [-gr] [-gi] [-d] [-l] [-w] [-x] [-s]\n");
fprintf(stdout,"usage: [-c] [-v] [-gr] [-gi] [-w] [-x] [-s]\n");
fprintf(stdout,"usage: [-c] [-v] [-gr] [-gi] [-w] [-x] [-s] [-gn3s]\n");
fprintf(stdout,"[-c] log high rate channel data\n");
fprintf(stdout,"[-v] be verbose \n");
fprintf(stdout,"[-gr] <gain> set rf gain in dB (DBSRX only)\n");
Expand Down
3 changes: 1 addition & 2 deletions objects/sv_select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ void SV_Select::Import()
nsvs++;

/* Slow down acquisition if PVT is doing fine */
acqs_per_pvt = MAX_CHANNELS - nsvs;
acqs_per_pvt = 1;
acqs_per_pvt = MAX_ACQS_PER_PVT - nsvs;

if(acqs_per_pvt < 1)
acqs_per_pvt = 1;
Expand Down

0 comments on commit 51b78da

Please sign in to comment.