1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-02-15 10:30:09 +00:00

Fix value

This commit is contained in:
Carles Fernandez 2018-11-25 10:32:56 +01:00
parent ef45548e87
commit b755f4a895
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
3 changed files with 3 additions and 3 deletions

View File

@ -306,7 +306,7 @@ int64_t Galileo_Navigation_Message::read_navigation_signed(std::bitset<GALILEO_D
// read the MSB and perform the sign extension
if (bits[GALILEO_DATA_JK_BITS - parameter[0].first] == 1)
{
value ^= 0x3FFFFFFFFFFFFFFFLL; // 64 bits variable
value ^= 0xFFFFFFFFFFFFFFFFLL; // 64 bits variable
}
else
{

View File

@ -115,7 +115,7 @@ int64_t Gps_CNAV_Navigation_Message::read_navigation_signed(std::bitset<GPS_CNAV
// read the MSB and perform the sign extension
if (bits[GPS_CNAV_DATA_PAGE_BITS - parameter[0].first] == 1)
{
value ^= 0x3FFFFFFFFFFFFFFFLL; // 64 bits variable
value ^= 0xFFFFFFFFFFFFFFFFLL; // 64 bits variable
}
else
{

View File

@ -203,7 +203,7 @@ int64_t Gps_Navigation_Message::read_navigation_signed(std::bitset<GPS_SUBFRAME_
// read the MSB and perform the sign extension
if (bits[GPS_SUBFRAME_BITS - parameter[0].first] == 1)
{
value ^= 0x3FFFFFFFFFFFFFFFLL; // 64 bits variable
value ^= 0xFFFFFFFFFFFFFFFFLL; // 64 bits variable
}
else
{