From da13f8e86a365ac5dce5b314a9fc96ddecc091c6 Mon Sep 17 00:00:00 2001 From: Marc Majoral Date: Tue, 8 Jul 2025 15:10:48 +0200 Subject: [PATCH] Increase maximum number of satellites reported by AN printer to 16 --- src/algorithms/PVT/libs/an_packet_printer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/PVT/libs/an_packet_printer.h b/src/algorithms/PVT/libs/an_packet_printer.h index f9b96a46a..3068ef094 100644 --- a/src/algorithms/PVT/libs/an_packet_printer.h +++ b/src/algorithms/PVT/libs/an_packet_printer.h @@ -52,7 +52,7 @@ struct sdr_gnss_packet_t uint8_t prn; // PRN ID. Galileo sats expressed as PRN + 100 uint8_t snr; // in [dB-Hz] int16_t doppler; // in [Hz], saturates at +32767 / -32768 Hz - } sats[6]; + } sats[16]; uint32_t reserved; uint16_t status; @@ -62,7 +62,7 @@ struct sdr_gnss_packet_t struct an_packet_t { uint8_t header[4]; - uint8_t data[73]; // SDR_GNSS_PACKET_LENGTH + uint8_t data[113]; // SDR_GNSS_PACKET_LENGTH }; @@ -108,7 +108,7 @@ private: 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a, 0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92, 0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9, 0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0}}; - const size_t SDR_GNSS_PACKET_LENGTH = 73; + const size_t SDR_GNSS_PACKET_LENGTH = 113; const uint8_t SDR_GNSS_PACKET_ID = 201; int init_serial(const std::string& serial_device);