mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-04 17:16:26 +00:00
Fix defects detected by coverity scan (uninitialized members)
This commit is contained in:
parent
774e50545e
commit
c850adf5e7
@ -31,6 +31,60 @@
|
|||||||
#include "spirent_motion_csv_dump_reader.h"
|
#include "spirent_motion_csv_dump_reader.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|
||||||
|
spirent_motion_csv_dump_reader::spirent_motion_csv_dump_reader()
|
||||||
|
{
|
||||||
|
header_lines = 2;
|
||||||
|
TOW_ms = 0.0;
|
||||||
|
Pos_X = 0.0;
|
||||||
|
Pos_Y = 0.0;
|
||||||
|
Pos_Z = 0.0;
|
||||||
|
Vel_X = 0.0;
|
||||||
|
Vel_Y = 0.0;
|
||||||
|
Vel_Z = 0.0;
|
||||||
|
Acc_X = 0.0;
|
||||||
|
Acc_Y = 0.0;
|
||||||
|
Acc_Z = 0.0;
|
||||||
|
Jerk_X = 0.0;
|
||||||
|
Jerk_Y = 0.0;
|
||||||
|
Jerk_Z = 0.0;
|
||||||
|
Lat = 0.0;
|
||||||
|
Long = 0.0;
|
||||||
|
Height = 0.0;
|
||||||
|
Heading = 0.0;
|
||||||
|
Elevation = 0.0;
|
||||||
|
Bank = 0.0;
|
||||||
|
Ang_vel_X = 0.0;
|
||||||
|
Ang_vel_Y = 0.0;
|
||||||
|
Ang_vel_Z = 0.0;
|
||||||
|
Ang_acc_X = 0.0;
|
||||||
|
Ang_acc_Y = 0.0;
|
||||||
|
Ang_acc_Z = 0.0;
|
||||||
|
Ant1_Pos_X = 0.0;
|
||||||
|
Ant1_Pos_Y = 0.0;
|
||||||
|
Ant1_Pos_Z = 0.0;
|
||||||
|
Ant1_Vel_X = 0.0;
|
||||||
|
Ant1_Vel_Y = 0.0;
|
||||||
|
Ant1_Vel_Z = 0.0;
|
||||||
|
Ant1_Acc_X = 0.0;
|
||||||
|
Ant1_Acc_Y = 0.0;
|
||||||
|
Ant1_Acc_Z = 0.0;
|
||||||
|
Ant1_Lat = 0.0;
|
||||||
|
Ant1_Long = 0.0;
|
||||||
|
Ant1_Height = 0.0;
|
||||||
|
Ant1_DOP = 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
spirent_motion_csv_dump_reader::~spirent_motion_csv_dump_reader()
|
||||||
|
{
|
||||||
|
if (d_dump_file.is_open() == true)
|
||||||
|
{
|
||||||
|
d_dump_file.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool spirent_motion_csv_dump_reader::read_csv_obs()
|
bool spirent_motion_csv_dump_reader::read_csv_obs()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -193,18 +247,3 @@ void spirent_motion_csv_dump_reader::close_obs_file()
|
|||||||
d_dump_file.close();
|
d_dump_file.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
spirent_motion_csv_dump_reader::spirent_motion_csv_dump_reader()
|
|
||||||
{
|
|
||||||
header_lines = 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
spirent_motion_csv_dump_reader::~spirent_motion_csv_dump_reader()
|
|
||||||
{
|
|
||||||
if (d_dump_file.is_open() == true)
|
|
||||||
{
|
|
||||||
d_dump_file.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user