1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Fix crash

This commit is contained in:
Carles Fernandez 2016-10-10 11:19:58 +02:00
parent 257d2de18e
commit 001896fbd7

View File

@ -238,9 +238,16 @@ void TTFF_GPS_L1_CA_Test::config_1()
void TTFF_GPS_L1_CA_Test::config_2() void TTFF_GPS_L1_CA_Test::config_2()
{ {
//std::string path = std::string(TEST_PATH); if(FLAGS_config_file_ttff.empty())
//std::string filename = path + "../../conf/gnss-sdr_GPS_L1_USRP_X300_realtime.conf"; {
std::string path = std::string(TEST_PATH);
std::string filename = path + "../../conf/gnss-sdr_GPS_L1_USRP_X300_realtime.conf";
config2 = std::make_shared<FileConfiguration>(filename);
}
else
{
config2 = std::make_shared<FileConfiguration>(FLAGS_config_file_ttff); config2 = std::make_shared<FileConfiguration>(FLAGS_config_file_ttff);
}
config2->set_property("SignalSource.samples", std::to_string(FLAGS_fs_in * FLAGS_max_measurement_duration)); config2->set_property("SignalSource.samples", std::to_string(FLAGS_fs_in * FLAGS_max_measurement_duration));
} }