1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +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:
cesaaargm 2024-05-06 17:53:13 +02:00
parent b687d4cafe
commit dd2f153023

View File

@ -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 alpha = (static_cast<uint64_t>(dsm_msg[8]) << 40) +
(static_cast<uint64_t>(dsm_msg[9]) << 32) +
(static_cast<uint64_t>(dsm_msg[10]) << 24) +
(static_cast<uint64_t>(dsm_msg[11]) << 16) +
(static_cast<uint64_t>(dsm_msg[12]) << 8) +
(static_cast<uint64_t>(dsm_msg[13]));
uint64_t alpha = (static_cast<uint64_t>(dsm_msg[7]) << 40) +
(static_cast<uint64_t>(dsm_msg[8]) << 32) +
(static_cast<uint64_t>(dsm_msg[9]) << 24) +
(static_cast<uint64_t>(dsm_msg[10]) << 16) +
(static_cast<uint64_t>(dsm_msg[11]) << 8) +
(static_cast<uint64_t>(dsm_msg[12]));
return alpha;
}