Skip to content
Snippets Groups Projects
Commit 4e97c7ea authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

initialization seting zeros

parent b4ff6cda
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
......@@ -4,7 +4,23 @@ using namespace GNSSUtils;
Navigation::Navigation()
{
// initialization
freeNavigationArrays();
memset (nav_.utc_gps, 0, sizeof (nav_.utc_gps));
memset (nav_.utc_glo, 0, sizeof (nav_.utc_glo));
memset (nav_.utc_gal, 0, sizeof (nav_.utc_gal));
memset (nav_.utc_qzs, 0, sizeof (nav_.utc_qzs));
memset (nav_.utc_cmp, 0, sizeof (nav_.utc_cmp));
memset (nav_.utc_irn, 0, sizeof (nav_.utc_irn));
memset (nav_.utc_sbs, 0, sizeof (nav_.utc_sbs));
memset (nav_.ion_gps, 0, sizeof (nav_.ion_gps));
memset (nav_.ion_gal, 0, sizeof (nav_.ion_gal));
memset (nav_.ion_qzs, 0, sizeof (nav_.ion_qzs));
memset (nav_.ion_cmp, 0, sizeof (nav_.ion_cmp));
memset (nav_.ion_irn, 0, sizeof (nav_.ion_irn));
nav_.leaps = 0;
sbssat_t sbssat_zero = {0};
nav_.sbssat = sbssat_zero;
}
Navigation::Navigation(const Navigation& nav)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment