MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_madoca.h File Reference

MRTKLIB MADOCA-PPP Module — QZSS L6E CSSR message decode functions. More...

Include dependency graph for mrtk_madoca.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void set_mcssr_ch (int ch)
 Set MADOCA-PPP CSSR channel index for multi-L6E.
int get_mcssr_ch (void)
 Get current MADOCA-PPP CSSR channel index.
void init_mcssr (const gtime_t gt)
 Initialize MADOCA-PPP CSSR control struct for current channel.
int decode_qzss_l6emsg (rtcm_t *rtcm)
 Decode QZSS L6E message and convert to RTCM SSR.
int input_qzssl6e (rtcm_t *rtcm, const uint8_t data)
 Stack QZSS L6E message and synchronize frame with L6 preamble.
int input_qzssl6ef (rtcm_t *rtcm, FILE *fp)
 Fetch next QZSS L6E message and input a message from file.
int mcssr_sel_biascode (const int sys, const int code)
 Select MADOCA-PPP code/phase bias code from observation code.

Detailed Description

MRTKLIB MADOCA-PPP Module — QZSS L6E CSSR message decode functions.

This header provides functions for decoding QZSS L6E (MADOCA-PPP) Compact SSR messages and converting them to RTCM SSR format, extracted from mdccssr.c with zero algorithmic changes.

Note
Functions declared here are implemented in mrtk_madoca.c.

Definition in file mrtk_madoca.h.

Function Documentation

◆ decode_qzss_l6emsg()

int decode_qzss_l6emsg ( rtcm_t * rtcm)

Decode QZSS L6E message and convert to RTCM SSR.

Parameters
[in,out]rtcmRTCM control struct
Returns
Status (-1: error, 0: no message, 10: input SSR messages)
Note
Before calling this function, call init_mcssr().

Definition at line 704 of file mrtk_madoca.c.

References _mcssr, _mcssr_ch, l6_header_t::alert, l6_header_t::anme, l6_header_t::csid, decode_mcssr_cb(), decode_mcssr_cc(), decode_mcssr_mask(), decode_mcssr_oc(), decode_mcssr_pb(), decode_mcssr_ura(), l6_header_t::fac, framelen, getbitu(), L6_DATA_BITS, L6_HEADER_BITS, l6_parse_header(), L6_PREAMBLE, MCSSR_MAX_PRN, MCSSR_ST_CB, MCSSR_ST_CC, MCSSR_ST_MASK, MCSSR_ST_OC, MCSSR_ST_PB, MCSSR_ST_URA, l6_header_t::msgid, l6_header_t::preamble, l6_header_t::prn, rtcm, RTCM_MN_CSSR, l6_header_t::sf_ind, time_str(), trace(), and l6_header_t::vid.

Referenced by decode_qzss_l6frame(), and input_qzssl6e().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_mcssr_ch()

int get_mcssr_ch ( void )

Get current MADOCA-PPP CSSR channel index.

Returns
Current channel index

Definition at line 912 of file mrtk_madoca.c.

References _mcssr_ch.

◆ init_mcssr()

void init_mcssr ( const gtime_t gt)

Initialize MADOCA-PPP CSSR control struct for current channel.

Parameters
[in]gtGPST for week number determination

Definition at line 919 of file mrtk_madoca.c.

References _mcssr, and _mcssr_ch.

Referenced by decoderaw(), and update_qzssl6e().

Here is the caller graph for this function:

◆ input_qzssl6e()

int input_qzssl6e ( rtcm_t * rtcm,
const uint8_t data )

Stack QZSS L6E message and synchronize frame with L6 preamble.

Parameters
[in,out]rtcmRTCM control struct
[in]dataL6E 1-byte data
Returns
Status (-1: error, 0: no message, 10: input CSSR messages)
Note
Before calling this function, call init_mcssr().

Definition at line 935 of file mrtk_madoca.c.

References decode_qzss_l6emsg(), L6_FRAME_LEN, rtcm, and trace().

Referenced by decoderaw(), and input_qzssl6ef().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_qzssl6ef()

int input_qzssl6ef ( rtcm_t * rtcm,
FILE * fp )

Fetch next QZSS L6E message and input a message from file.

Parameters
[in,out]rtcmRTCM control struct
[in]fpFile pointer
Returns
Status (-2: end of file, -1...10: same as input_qzssl6e())
Note
Same as input_qzssl6e().

Definition at line 965 of file mrtk_madoca.c.

References input_qzssl6e(), rtcm, and trace().

Referenced by update_qzssl6e().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mcssr_sel_biascode()

int mcssr_sel_biascode ( const int sys,
const int code )

Select MADOCA-PPP code/phase bias code from observation code.

Parameters
[in]sysNavigation system
[in]codeObservation code
Returns
MADOCA-PPP CB/PB code

Definition at line 988 of file mrtk_madoca.c.

References CODE_L1B, CODE_L1C, CODE_L1D, CODE_L1E, CODE_L1L, CODE_L1P, CODE_L1S, CODE_L1W, CODE_L1X, CODE_L2C, CODE_L2I, CODE_L2L, CODE_L2P, CODE_L2Q, CODE_L2S, CODE_L2W, CODE_L2X, CODE_L5D, CODE_L5I, CODE_L5P, CODE_L5Q, CODE_L5X, CODE_L6B, CODE_L6C, CODE_L6I, CODE_L6Q, CODE_L6X, CODE_L7D, CODE_L7I, CODE_L7Q, CODE_L7X, CODE_NONE, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, and SYS_QZS.

Referenced by udsatcb(), and udsatpb().

Here is the caller graph for this function:

◆ set_mcssr_ch()

void set_mcssr_ch ( int ch)

Set MADOCA-PPP CSSR channel index for multi-L6E.

Parameters
[in]chChannel index (0 or 1)

Definition at line 907 of file mrtk_madoca.c.

References _mcssr_ch, and SSR_CH_NUM.