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

Commit 33822a4

Browse files
committed
Add QZSS support
1 parent 846b7c3 commit 33822a4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

libswiftnav

src/manage.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static almanac_t almanac[NUM_SATS];
9191
static float track_cn0_use_thres = 31.0; /* dBHz */
9292
static float elevation_mask = 0.0; /* degrees */
9393
static bool sbas_enabled = false;
94+
static bool qzss_enabled = false;
9495

9596
static u8 manage_track_new_acq(void);
9697
static void manage_acq(void);
@@ -146,6 +147,7 @@ static msg_t manage_acq_thread(void *arg)
146147
void manage_acq_setup()
147148
{
148149
SETTING("acquisition", "sbas enabled", sbas_enabled, TYPE_BOOL);
150+
SETTING("acquisition", "qzss enabled", qzss_enabled, TYPE_BOOL);
149151

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

164+
if (!qzss_enabled &&
165+
(acq_status[i].sid.constellation == CONSTELLATION_QZSS)) {
166+
acq_status[i].masked = true;
167+
}
168+
162169
almanac[i].valid = 0;
163170
}
164171

0 commit comments

Comments
 (0)