Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Add QZSS support
Browse files Browse the repository at this point in the history
  • Loading branch information
ljbade committed Dec 15, 2015
1 parent 846b7c3 commit 33822a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libswiftnav
7 changes: 7 additions & 0 deletions src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ static almanac_t almanac[NUM_SATS];
static float track_cn0_use_thres = 31.0; /* dBHz */
static float elevation_mask = 0.0; /* degrees */
static bool sbas_enabled = false;
static bool qzss_enabled = false;

static u8 manage_track_new_acq(void);
static void manage_acq(void);
Expand Down Expand Up @@ -146,6 +147,7 @@ static msg_t manage_acq_thread(void *arg)
void manage_acq_setup()
{
SETTING("acquisition", "sbas enabled", sbas_enabled, TYPE_BOOL);
SETTING("acquisition", "qzss enabled", qzss_enabled, TYPE_BOOL);

for (u32 i=0; i<NUM_SATS; i++) {
acq_status[i].state = ACQ_PRN_ACQUIRING;
Expand All @@ -159,6 +161,11 @@ void manage_acq_setup()
acq_status[i].masked = true;
}

if (!qzss_enabled &&
(acq_status[i].sid.constellation == CONSTELLATION_QZSS)) {
acq_status[i].masked = true;
}

almanac[i].valid = 0;
}

Expand Down

0 comments on commit 33822a4

Please sign in to comment.