1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00

clean terminal output

This commit is contained in:
Carles Fernandez 2014-08-31 15:33:16 +02:00
parent ad5fd36719
commit b770a5137e

View File

@ -267,22 +267,17 @@ void galileo_e1b_telemetry_decoder_cc::decode_word(double *page_part_symbols,int
Galileo_Almanac almanac=d_nav.get_almanac(); Galileo_Almanac almanac=d_nav.get_almanac();
d_almanac_queue->push(almanac); d_almanac_queue->push(almanac);
//debug //debug
std::cout<<"Almanac received!"<<std::endl; std::cout << "Almanac received!" << std::endl;
std::cout<<"GPS_to_Galileo time conversion:"<<std::endl; LOG(INFO) << "GPS_to_Galileo time conversion:";
std::cout<<"A0G="<<almanac.A_0G_10<<std::endl; LOG(INFO) << "A0G=" << almanac.A_0G_10;
std::cout<<"A1G="<<almanac.A_1G_10<<std::endl; LOG(INFO) << "A1G=" << almanac.A_1G_10;
std::cout<<"T0G="<<almanac.t_0G_10<<std::endl; LOG(INFO) << "T0G=" << almanac.t_0G_10;
std::cout<<"WN_0G_10="<<almanac.WN_0G_10<<std::endl; LOG(INFO) << "WN_0G_10=" << almanac.WN_0G_10;
LOG(INFO) << "Current parameters:";
std::cout<<"Actual parameters:"<<std::endl; LOG(INFO) << "d_TOW_at_current_symbol="<< d_TOW_at_current_symbol;
std::cout<<"d_TOW_at_current_symbol="<<d_TOW_at_current_symbol<<std::endl; LOG(INFO) << "d_nav.WN_0=" << d_nav.WN_0;
std::cout<<"d_nav.WN_0="<<d_nav.WN_0<<std::endl; delta_t = almanac.A_0G_10 + almanac.A_1G_10 * (d_TOW_at_current_symbol - almanac.t_0G_10 + 604800 * (fmod((d_nav.WN_0 - almanac.WN_0G_10), 64)));
LOG(INFO) << "delta_t=" << delta_t << "[s]";
delta_t=almanac.A_0G_10+almanac.A_1G_10*(d_TOW_at_current_symbol-almanac.t_0G_10+604800*(fmod((d_nav.WN_0-almanac.WN_0G_10),64)));
std::cout<<"delta_t="<<delta_t<<"[s]"<<std::endl;
} }
} }