mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-28 18:04:51 +00:00
Avoid garbage values
This commit is contained in:
parent
8867a9327c
commit
76515228b0
@ -1321,6 +1321,13 @@ int filter(double *x, double *P, const double *H, const double *v,
|
||||
xp_ = mat(k, 1);
|
||||
P_ = mat(k, k);
|
||||
Pp_ = mat(k, k);
|
||||
for (i = 0; i < k; i++)
|
||||
{
|
||||
for (j = 0; j < k; j++)
|
||||
{
|
||||
Pp_[i * k + j] = 0.0;
|
||||
}
|
||||
}
|
||||
H_ = mat(k, m);
|
||||
for (i = 0; i < k; i++)
|
||||
{
|
||||
|
@ -127,8 +127,8 @@ void tide_solid(const double *rsun, const double *rmoon,
|
||||
const double *pos, const double *E, double gmst, int opt,
|
||||
double *dr)
|
||||
{
|
||||
double dr1[3];
|
||||
double dr2[3];
|
||||
double dr1[3] = {0.0, 0.0, 0.0};
|
||||
double dr2[3] = {0.0, 0.0, 0.0};
|
||||
double eu[3];
|
||||
double du;
|
||||
double dn;
|
||||
|
Loading…
Reference in New Issue
Block a user