mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-28 06:42:55 +00:00
Revert wrong change
This commit is contained in:
parent
a2de137864
commit
ec1b600077
@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "edc.h"
|
#include "edc.h"
|
||||||
#include "bits.h"
|
#include "bits.h"
|
||||||
#include "cnav_msg.h"
|
#include "cnav_msg.h"
|
||||||
@ -56,9 +57,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/** GPS L2C preamble */
|
/** GPS L2C preamble */
|
||||||
const u32 GPS_CNAV_PREAMBLE1 = 0x989A73u;
|
#define GPS_CNAV_PREAMBLE1 (0b10001011u)
|
||||||
/** Inverted GPS L2C preamble */
|
/** Inverted GPS L2C preamble */
|
||||||
const u32 GPS_CNAV_PREAMBLE2 = 0x010F054u;
|
#define GPS_CNAV_PREAMBLE2 (0b01110100u)
|
||||||
/** GPS L2C preamble length in bits */
|
/** GPS L2C preamble length in bits */
|
||||||
#define GPS_CNAV_PREAMBLE_LENGTH (8)
|
#define GPS_CNAV_PREAMBLE_LENGTH (8)
|
||||||
/** GPS L2C CNAV message length in bits */
|
/** GPS L2C CNAV message length in bits */
|
||||||
@ -200,8 +201,7 @@ static void _cnav_add_symbol(cnav_v27_part_t *part, u8 ch)
|
|||||||
* - M - Number of bits in the tail to ignore.
|
* - M - Number of bits in the tail to ignore.
|
||||||
*/
|
*/
|
||||||
unsigned char tmp_bits[ (GPS_L2C_V27_DECODE_BITS + GPS_L2C_V27_DELAY_BITS +
|
unsigned char tmp_bits[ (GPS_L2C_V27_DECODE_BITS + GPS_L2C_V27_DELAY_BITS +
|
||||||
CHAR_BIT - 1) /
|
CHAR_BIT - 1) / CHAR_BIT];
|
||||||
CHAR_BIT];
|
|
||||||
|
|
||||||
v27_chainback_likely(&part->dec, tmp_bits,
|
v27_chainback_likely(&part->dec, tmp_bits,
|
||||||
GPS_L2C_V27_DECODE_BITS + GPS_L2C_V27_DELAY_BITS);
|
GPS_L2C_V27_DECODE_BITS + GPS_L2C_V27_DELAY_BITS);
|
||||||
@ -238,6 +238,7 @@ static void _cnav_add_symbol(cnav_v27_part_t *part, u8 ch)
|
|||||||
}
|
}
|
||||||
if (part->preamble_seen && GPS_CNAV_MSG_LENGTH <= part->n_decoded)
|
if (part->preamble_seen && GPS_CNAV_MSG_LENGTH <= part->n_decoded)
|
||||||
{
|
{
|
||||||
|
|
||||||
/* We have collected 300 bits starting from message preamble. Now try
|
/* We have collected 300 bits starting from message preamble. Now try
|
||||||
* to compute CRC-24Q */
|
* to compute CRC-24Q */
|
||||||
u32 crc = _cnav_compute_crc(part);
|
u32 crc = _cnav_compute_crc(part);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user