mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-29 02:14:51 +00:00
Fix warnings with gcc
This commit is contained in:
parent
d116e75f98
commit
883b4072c7
@ -78,15 +78,15 @@ const double INT_SWAP_STAT = 86400.0; //!< swap interval of solution s
|
||||
const unsigned int POLYCRC32 = 0xEDB88320u; //!< CRC32 polynomial
|
||||
const unsigned int POLYCRC24Q = 0x1864CFBu; //!< CRC24Q polynomial
|
||||
|
||||
const unsigned int PMODE_SINGLE = 0; //!< positioning mode: single
|
||||
const unsigned int PMODE_DGPS = 1; //!< positioning mode: DGPS/DGNSS
|
||||
const unsigned int PMODE_KINEMA = 2; //!< positioning mode: kinematic
|
||||
const unsigned int PMODE_STATIC = 3; //!< positioning mode: static
|
||||
const unsigned int PMODE_MOVEB = 4; //!< positioning mode: moving-base
|
||||
const unsigned int PMODE_FIXED = 5; //!< positioning mode: fixed
|
||||
const unsigned int PMODE_PPP_KINEMA = 6; //!< positioning mode: PPP-kinemaric
|
||||
const unsigned int PMODE_PPP_STATIC = 7; //!< positioning mode: PPP-static
|
||||
const unsigned int PMODE_PPP_FIXED = 8; //!< positioning mode: PPP-fixed
|
||||
const int PMODE_SINGLE = 0; //!< positioning mode: single
|
||||
const int PMODE_DGPS = 1; //!< positioning mode: DGPS/DGNSS
|
||||
const int PMODE_KINEMA = 2; //!< positioning mode: kinematic
|
||||
const int PMODE_STATIC = 3; //!< positioning mode: static
|
||||
const int PMODE_MOVEB = 4; //!< positioning mode: moving-base
|
||||
const int PMODE_FIXED = 5; //!< positioning mode: fixed
|
||||
const int PMODE_PPP_KINEMA = 6; //!< positioning mode: PPP-kinemaric
|
||||
const int PMODE_PPP_STATIC = 7; //!< positioning mode: PPP-static
|
||||
const int PMODE_PPP_FIXED = 8; //!< positioning mode: PPP-fixed
|
||||
|
||||
const unsigned int SOLF_LLH = 0; //!< solution format: lat/lon/height
|
||||
const unsigned int SOLF_XYZ = 1; //!< solution format: x/y/z-ecef
|
||||
@ -263,12 +263,12 @@ const unsigned int IONOOPT_QZS = 6; //!< ionosphere option: QZSS broadca
|
||||
const unsigned int IONOOPT_LEX = 7; //!< ionosphere option: QZSS LEX ionospehre
|
||||
const unsigned int IONOOPT_STEC = 8; //!< ionosphere option: SLANT TEC model
|
||||
|
||||
const unsigned int TROPOPT_OFF = 0; //!< troposphere option: correction off
|
||||
const unsigned int TROPOPT_SAAS = 1; //!< troposphere option: Saastamoinen model
|
||||
const unsigned int TROPOPT_SBAS = 2; //!< troposphere option: SBAS model
|
||||
const unsigned int TROPOPT_EST = 3; //!< troposphere option: ZTD estimation
|
||||
const unsigned int TROPOPT_ESTG = 4; //!< troposphere option: ZTD+grad estimation
|
||||
const unsigned int TROPOPT_ZTD = 5; //!< troposphere option: ZTD correction
|
||||
const int TROPOPT_OFF = 0; //!< troposphere option: correction off
|
||||
const int TROPOPT_SAAS = 1; //!< troposphere option: Saastamoinen model
|
||||
const int TROPOPT_SBAS = 2; //!< troposphere option: SBAS model
|
||||
const int TROPOPT_EST = 3; //!< troposphere option: ZTD estimation
|
||||
const int TROPOPT_ESTG = 4; //!< troposphere option: ZTD+grad estimation
|
||||
const int TROPOPT_ZTD = 5; //!< troposphere option: ZTD correction
|
||||
|
||||
const unsigned int EPHOPT_BRDC = 0; //!< ephemeris option: broadcast ephemeris
|
||||
const unsigned int EPHOPT_PREC = 1; //!< ephemeris option: precise ephemeris
|
||||
|
@ -45,7 +45,8 @@ obsd_t insert_obs_to_rtklib(obsd_t rtklib_obs, Gnss_Synchro gnss_synchro, int we
|
||||
|
||||
eph_t eph_to_rtklib(Galileo_Ephemeris gal_eph)
|
||||
{
|
||||
eph_t rtklib_sat = {};
|
||||
eph_t rtklib_sat = {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, 0.0, 0.0, 0.0, 0.0, 0.0, {}, 0.0, 0.0 };
|
||||
rtklib_sat.sat = gal_eph.i_satellite_PRN;
|
||||
rtklib_sat.A = gal_eph.A_1 * gal_eph.A_1;
|
||||
rtklib_sat.M0 = gal_eph.M0_1;
|
||||
@ -93,7 +94,8 @@ eph_t eph_to_rtklib(Galileo_Ephemeris gal_eph)
|
||||
|
||||
eph_t eph_to_rtklib(Gps_Ephemeris gps_eph)
|
||||
{
|
||||
eph_t rtklib_sat = {};
|
||||
eph_t rtklib_sat = {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, 0.0, 0.0, 0.0, 0.0, 0.0, {}, 0.0, 0.0 };
|
||||
rtklib_sat.sat = gps_eph.i_satellite_PRN;
|
||||
rtklib_sat.A = gps_eph.d_sqrt_A * gps_eph.d_sqrt_A;
|
||||
rtklib_sat.M0 = gps_eph.d_M_0;
|
||||
@ -143,7 +145,8 @@ eph_t eph_to_rtklib(Gps_Ephemeris gps_eph)
|
||||
|
||||
eph_t eph_to_rtklib(Gps_CNAV_Ephemeris gps_cnav_eph)
|
||||
{
|
||||
eph_t rtklib_sat = {};
|
||||
eph_t rtklib_sat = {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, 0.0, 0.0, 0.0, 0.0, 0.0, {}, 0.0, 0.0 };
|
||||
rtklib_sat.sat = gps_cnav_eph.i_satellite_PRN;
|
||||
const double A_REF = 26559710.0; // See IS-GPS-200H, pp. 170
|
||||
rtklib_sat.A = A_REF + gps_cnav_eph.d_DELTA_A;
|
||||
|
@ -90,7 +90,7 @@ tec_t *addtec(const double *lats, const double *lons, const double *hgts,
|
||||
double rb, nav_t *nav)
|
||||
{
|
||||
tec_t *p, *nav_tec;
|
||||
gtime_t time0 = {};
|
||||
gtime_t time0 = {0, 0};
|
||||
int i, n, ndata[3];
|
||||
|
||||
trace(3, "addtec :\n");
|
||||
@ -234,7 +234,7 @@ int readionexb(FILE *fp, const double *lats, const double *lons,
|
||||
const double *hgts, double rb, double nexp, nav_t *nav)
|
||||
{
|
||||
tec_t *p = NULL;
|
||||
gtime_t time = {};
|
||||
gtime_t time = {0, 0};
|
||||
double lat, lon[3], hgt, x;
|
||||
int i, j, k, n, m, index, type = 0;
|
||||
char buff[1024], *label = buff + 60;
|
||||
|
@ -481,7 +481,7 @@ int raim_fde(const obsd_t *obs, int n, const double *rs,
|
||||
double *azel, int *vsat, double *resp, char *msg)
|
||||
{
|
||||
obsd_t *obs_e;
|
||||
sol_t sol_e = {};
|
||||
sol_t sol_e = { {0, 0}, {}, {}, {}, '0', '0', '0', 0.0, 0.0, 0.0};
|
||||
char tstr[32], name[16], msg_e[128];
|
||||
double *rs_e, *dts_e, *vare_e, *azel_e, *resp_e, rms_e, rms = 100.0;
|
||||
int i, j, k, nvsat, stat = 0, *svh_e, *vsat_e, sat = 0;
|
||||
|
@ -300,7 +300,7 @@ void combpeph(nav_t *nav, int opt)
|
||||
void readsp3(const char *file, nav_t *nav, int opt)
|
||||
{
|
||||
FILE *fp;
|
||||
gtime_t time = {};
|
||||
gtime_t time = {0, 0};
|
||||
double bfact[2] = {};
|
||||
int i, j, n, ns, sats[MAXSAT] = {};
|
||||
char *efiles[MAXEXFILE], *ext, type = ' ', tsys[4] = "";
|
||||
@ -355,8 +355,8 @@ void readsp3(const char *file, nav_t *nav, int opt)
|
||||
*-----------------------------------------------------------------------------*/
|
||||
int readsap(const char *file, gtime_t time, nav_t *nav)
|
||||
{
|
||||
pcvs_t pcvs = {};
|
||||
pcv_t pcv0 = {}, *pcv;
|
||||
pcvs_t pcvs = {0, 0};
|
||||
pcv_t pcv0 = { 0, {}, {}, {0,0}, {0,0}, {{},{}}, {{},{}} }, *pcv;
|
||||
int i;
|
||||
|
||||
trace(3, "readsap : file=%s time=%s\n", file, time_str(time, 0));
|
||||
|
@ -101,7 +101,7 @@ static int resamb_TCAR(rtk_t *rtk, const obsd_t *obs, const int *sat,
|
||||
static int statlevel = 0; /* rtk status output level (0:off) */
|
||||
static FILE *fp_stat = NULL; /* rtk status file pointer */
|
||||
static char file_stat[1024] = ""; /* rtk status file original path */
|
||||
static gtime_t time_stat = {0}; /* rtk status file time */
|
||||
static gtime_t time_stat = {0, 0}; /* rtk status file time */
|
||||
|
||||
|
||||
int rtkopenstat(const char *file, int level);
|
||||
|
@ -218,7 +218,7 @@ int decode_sbstype7(const sbsmsg_t *msg, sbssat_t *sbssat)
|
||||
/* decode type 9: geo navigation message -------------------------------------*/
|
||||
int decode_sbstype9(const sbsmsg_t *msg, nav_t *nav)
|
||||
{
|
||||
seph_t seph = {};
|
||||
seph_t seph = { 0, {0,0}, {0,0}, 0, 0, {}, {}, {}, 0.0, 0.0 };
|
||||
int i, sat, t;
|
||||
|
||||
trace(4, "decode_sbstype9:\n");
|
||||
@ -619,7 +619,7 @@ int sbsreadmsgt(const char *file, int sel, gtime_t ts, gtime_t te,
|
||||
|
||||
int sbsreadmsg(const char *file, int sel, sbs_t *sbs)
|
||||
{
|
||||
gtime_t ts = {}, te = {};
|
||||
gtime_t ts = {0, 0}, te = {0, 0};
|
||||
|
||||
trace(3, "sbsreadmsg: file=%s sel=%d\n", file, sel);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user