mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Fix building
This commit is contained in:
parent
0a46cb1fe1
commit
8e79786218
@ -129,7 +129,7 @@ void updatesvr(rtksvr_t *svr, int ret, obs_t *obs, nav_t *nav, int sat,
|
||||
for (i = 0; i < obs->n; i++)
|
||||
{
|
||||
if (svr->rtk.opt.exsats[obs->data[i].sat - 1] == 1 ||
|
||||
!(satsys(obs->data[i].sat, nullptr) & svr->rtk.opt.navsys)) continue;
|
||||
!(satsys(obs->data[i].sat, NULL) & svr->rtk.opt.navsys)) continue;
|
||||
svr->obs[index][iobs].data[n] = obs->data[i];
|
||||
svr->obs[index][iobs].data[n++].rcv = index + 1;
|
||||
}
|
||||
@ -291,7 +291,7 @@ int decoderaw(rtksvr_t *svr, int index)
|
||||
{
|
||||
obs_t *obs;
|
||||
nav_t *nav;
|
||||
sbsmsg_t *sbsmsg = nullptr;
|
||||
sbsmsg_t *sbsmsg = NULL;
|
||||
int i, ret = 0, sat, fobs = 0;
|
||||
|
||||
tracet(4, "decoderaw: index=%d\n", index);
|
||||
@ -373,8 +373,8 @@ void decodefile(rtksvr_t *svr, int index)
|
||||
trop_t trop0[MAXSTA] = {{{0, 0.0}, {0.0}, {0.0}}};
|
||||
pppcorr_t pppcorr0 = {0, {{0}, {0}}, {{0.0}, {0.0}}, {0}, {0}, {0}, {0}, {stec0}, {trop0}};
|
||||
|
||||
nav_t nav = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
{0, 0, (erpd_t *){nullptr}}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0},
|
||||
nav_t nav = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
{0, 0, (erpd_t *){0}}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0}, {0.0},
|
||||
{0.0}, {0.0}, {0.0}, {0.0}, 0, {{0.0}, {0.0}}, {{0.0}, {0.0}}, {{{0.0}}, {{0.0}}, {{0.0}}},
|
||||
{0.0}, {0.0}, {*glo_fcn}, {*pcvt0}, sbssat0, {*sbsion0}, {*dgps0}, {*ssr0}, {*lexeph0},
|
||||
{{0, 0.0}, 0.0, {0.0}, {{0.0}, {0.0}}}, pppcorr0};
|
||||
@ -564,9 +564,9 @@ void *rtksvrthread(void *arg)
|
||||
{
|
||||
svr->nb[i] = svr->npb[i] = 0;
|
||||
free(svr->buff[i]);
|
||||
svr->buff[i] = nullptr;
|
||||
svr->buff[i] = NULL;
|
||||
free(svr->pbuf[i]);
|
||||
svr->pbuf[i] = nullptr;
|
||||
svr->pbuf[i] = NULL;
|
||||
//free_raw (svr->raw +i);
|
||||
free_rtcm(svr->rtcm + i);
|
||||
}
|
||||
@ -574,9 +574,9 @@ void *rtksvrthread(void *arg)
|
||||
{
|
||||
svr->nsb[i] = 0;
|
||||
free(svr->sbuf[i]);
|
||||
svr->sbuf[i] = nullptr;
|
||||
svr->sbuf[i] = NULL;
|
||||
}
|
||||
return nullptr;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -610,17 +610,17 @@ int rtksvrinit(rtksvr_t *svr)
|
||||
for (i = 0; i < 3; i++) svr->nb[i] = 0;
|
||||
for (i = 0; i < 2; i++) svr->nsb[i] = 0;
|
||||
for (i = 0; i < 3; i++) svr->npb[i] = 0;
|
||||
for (i = 0; i < 3; i++) svr->buff[i] = nullptr;
|
||||
for (i = 0; i < 2; i++) svr->sbuf[i] = nullptr;
|
||||
for (i = 0; i < 3; i++) svr->pbuf[i] = nullptr;
|
||||
for (i = 0; i < 3; i++) svr->buff[i] = NULL;
|
||||
for (i = 0; i < 2; i++) svr->sbuf[i] = NULL;
|
||||
for (i = 0; i < 3; i++) svr->pbuf[i] = NULL;
|
||||
for (i = 0; i < MAXSOLBUF; i++) svr->solbuf[i] = sol0;
|
||||
for (i = 0; i < 3; i++)
|
||||
for (j = 0; j < 10; j++) svr->nmsg[i][j] = 0;
|
||||
for (i = 0; i < 3; i++) svr->ftime[i] = time0;
|
||||
for (i = 0; i < 3; i++) svr->files[i][0] = '\0';
|
||||
svr->moni = nullptr;
|
||||
svr->moni = NULL;
|
||||
svr->tick = 0;
|
||||
svr->thread = nullptr;
|
||||
svr->thread = 0;
|
||||
svr->cputime = svr->prcout = 0;
|
||||
|
||||
if (!(svr->nav.eph = (eph_t *)malloc(sizeof(eph_t) * MAXSAT * 2)) ||
|
||||
@ -840,7 +840,7 @@ int rtksvrstart(rtksvr_t *svr, int cycle, int buffsize, int *strs,
|
||||
writesolhead(svr->stream + i, svr->solopt + i - 3);
|
||||
}
|
||||
/* create rtk server thread */
|
||||
if (pthread_create(&svr->thread, nullptr, rtksvrthread, svr))
|
||||
if (pthread_create(&svr->thread, NULL, rtksvrthread, svr))
|
||||
{
|
||||
for (i = 0; i < MAXSTRRTK; i++) strclose(svr->stream + i);
|
||||
return 0;
|
||||
@ -876,7 +876,7 @@ void rtksvrstop(rtksvr_t *svr, char **cmds)
|
||||
svr->state = 0;
|
||||
|
||||
/* free rtk server thread */
|
||||
pthread_join(svr->thread, nullptr);
|
||||
pthread_join(svr->thread, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user