mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-05 15:00:33 +00:00
Bugfix for OSNMA_DSM_Reader::get_alpha
This commit fixes a bug in the parsing of the DSM-Kroot alpha parameter.
This commit is contained in:
parent
b687d4cafe
commit
dd2f153023
@ -128,12 +128,12 @@ uint8_t OSNMA_DSM_Reader::get_towh_k(const std::vector<uint8_t>& dsm_msg) const
|
|||||||
|
|
||||||
uint64_t OSNMA_DSM_Reader::get_alpha(const std::vector<uint8_t>& dsm_msg) const
|
uint64_t OSNMA_DSM_Reader::get_alpha(const std::vector<uint8_t>& dsm_msg) const
|
||||||
{
|
{
|
||||||
uint64_t alpha = (static_cast<uint64_t>(dsm_msg[8]) << 40) +
|
uint64_t alpha = (static_cast<uint64_t>(dsm_msg[7]) << 40) +
|
||||||
(static_cast<uint64_t>(dsm_msg[9]) << 32) +
|
(static_cast<uint64_t>(dsm_msg[8]) << 32) +
|
||||||
(static_cast<uint64_t>(dsm_msg[10]) << 24) +
|
(static_cast<uint64_t>(dsm_msg[9]) << 24) +
|
||||||
(static_cast<uint64_t>(dsm_msg[11]) << 16) +
|
(static_cast<uint64_t>(dsm_msg[10]) << 16) +
|
||||||
(static_cast<uint64_t>(dsm_msg[12]) << 8) +
|
(static_cast<uint64_t>(dsm_msg[11]) << 8) +
|
||||||
(static_cast<uint64_t>(dsm_msg[13]));
|
(static_cast<uint64_t>(dsm_msg[12]));
|
||||||
return alpha;
|
return alpha;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user