1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 12:40:35 +00:00
This commit is contained in:
Antonio Ramos 2018-03-02 11:22:46 +01:00
parent b3c6d94cb6
commit a216d22509
2 changed files with 3 additions and 2 deletions

View File

@ -164,8 +164,6 @@ double prange(const obsd_t *obs, const nav_t *nav, const double *azel,
}
else if((obs->code[i] == CODE_NONE) && (obs->code[j] != CODE_NONE))
{
std::cout << "P1_P2 = " << P1_P2 << std::endl;
std::cout << "P2_C2 = " << P2_C2 << std::endl;
P2 += P2_C2; /* C2->P2 */
PC = P2 - gamma_ * P1_P2 / (1.0 - gamma_);
}

View File

@ -258,6 +258,9 @@ void Gps_CNAV_Navigation_Message::decode_page(std::bitset<GPS_CNAV_DATA_PAGE_BIT
ephemeris_record.d_A_f2 = ephemeris_record.d_A_f2 * CNAV_AF2_LSB;
//group delays
ephemeris_record.d_TGD = static_cast<double>(read_navigation_signed(data_bits, CNAV_TGD));
//Check if the grup delay value is not available. See IS-GPS-200, Table 30-IV.
//Bit string "1000000000000" is -4096 in 2 complement
if(ephemeris_record.d_TGD < -4095.9) { ephemeris_record.d_TGD = 0.0; }
ephemeris_record.d_TGD = ephemeris_record.d_TGD * CNAV_TGD_LSB;
ephemeris_record.d_ISCL1 = static_cast<double>(read_navigation_signed(data_bits, CNAV_ISCL1));
ephemeris_record.d_ISCL1 = ephemeris_record.d_ISCL1 * CNAV_ISCL1_LSB;