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:
parent
ef45548e87
commit
b755f4a895
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user