MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_rcv_skytraq.c File Reference
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mrtklib/mrtk_bits.h"
#include "mrtklib/mrtk_eph.h"
#include "mrtklib/mrtk_mat.h"
#include "mrtklib/mrtk_nav.h"
#include "mrtklib/mrtk_obs.h"
#include "mrtklib/mrtk_rcvraw.h"
#include "mrtklib/mrtk_rtcm.h"
#include "mrtklib/mrtk_sys.h"
#include "mrtklib/mrtk_time.h"
#include "mrtklib/mrtk_trace.h"
Include dependency graph for mrtk_rcv_skytraq.c:

Go to the source code of this file.

Macros

#define PI   3.1415926535897932 /* pi */
#define D2R   (PI / 180.0) /* deg to rad */
#define R2D   (180.0 / PI) /* rad to deg */
#define CLIGHT   299792458.0 /* speed of light (m/s) */
#define SC2RAD   3.1415926535898 /* semi-circle to radian (IS-GPS) */
#define SYS_NONE   0x00
#define SYS_GPS   0x01
#define SYS_SBS   0x02
#define SYS_GLO   0x04
#define SYS_GAL   0x08
#define SYS_QZS   0x10
#define SYS_CMP   0x20
#define SYS_IRN   0x40
#define TSYS_GPS   0
#define TSYS_UTC   1
#define TSYS_GLO   2
#define TSYS_GAL   3
#define TSYS_QZS   4
#define TSYS_CMP   5
#define TSYS_IRN   6
#define FREQ1   1.57542E9 /* L1/E1/B1C frequency (Hz) */
#define FREQ2   1.22760E9 /* L2 frequency (Hz) */
#define FREQ5   1.17645E9 /* L5/E5a/B2a frequency (Hz) */
#define FREQ6   1.27875E9 /* E6/L6 frequency (Hz) */
#define FREQ7   1.20714E9 /* E5b/B2I frequency (Hz) */
#define FREQ8   1.191795E9 /* E5ab/B2ab frequency (Hz) */
#define FREQ9   2.492028E9 /* S frequency (Hz) */
#define FREQ1_GLO   1.60200E9 /* GLONASS G1 base frequency (Hz) */
#define DFRQ1_GLO   0.56250E6 /* GLONASS G1 bias frequency (Hz/n) */
#define FREQ2_GLO   1.24600E9 /* GLONASS G2 base frequency (Hz) */
#define DFRQ2_GLO   0.43750E6 /* GLONASS G2 bias frequency (Hz/n) */
#define FREQ3_GLO   1.202025E9 /* GLONASS G3 frequency (Hz) */
#define FREQ1a_GLO   1.600995E9 /* GLONASS G1a frequency (Hz) */
#define FREQ2a_GLO   1.248060E9 /* GLONASS G2a frequency (Hz) */
#define FREQ1_CMP   1.561098E9 /* BDS B1I frequency (Hz) */
#define MINPRNGPS   1
#define MAXPRNGPS   32
#define MINPRNSBS   120
#define MAXPRNSBS   158
#define P2_5   0.03125
#define P2_6   0.015625
#define P2_11   4.882812500000000E-04
#define P2_15   3.051757812500000E-05
#define P2_17   7.629394531250000E-06
#define P2_19   1.907348632812500E-06
#define P2_20   9.536743164062500E-07
#define P2_21   4.768371582031250E-07
#define P2_23   1.192092895507810E-07
#define P2_24   5.960464477539063E-08
#define P2_27   7.450580596923828E-09
#define P2_29   1.862645149230957E-09
#define P2_30   9.313225746154785E-10
#define P2_31   4.656612873077393E-10
#define P2_32   2.328306436538696E-10
#define P2_33   1.164153218269348E-10
#define P2_34   5.820766091346740E-11
#define P2_35   2.910383045673370E-11
#define P2_38   3.637978807091710E-12
#define P2_40   9.094947017729280E-13
#define P2_43   1.136868377216160E-13
#define P2_46   1.421085471520200E-14
#define P2_50   8.881784197001252E-16
#define P2_55   2.775557561562891E-17
#define P2_59   1.734723475976810E-18
#define STQSYNC1   0xA0 /* skytraq binary sync code 1 */
#define STQSYNC2   0xA1 /* skytraq binary sync code 2 */
#define ID_STQTIME   0xDC /* skytraq message id: measurement epoch */
#define ID_STQRAW   0xDD /* skytraq message id: raw measurement */
#define ID_STQSVCH   0xDE /* skytraq message id: SV and channel status */
#define ID_STQSTAT   0xDF /* skytraq message id: navigation status */
#define ID_STQGPS   0xE0 /* skytraq message id: gps/qzs subframe */
#define ID_STQGLO   0xE1 /* skytraq message id: glonass string */
#define ID_STQBDSD1   0xE2 /* skytraq message id: beidou d1 subframe */
#define ID_STQBDSD2   0xE3 /* skytraq message id: beidou d2 subframe */
#define ID_STQRAWX   0xE5 /* skytraq message id: extended raw meas v.1 */
#define ID_STQGLOE   0x5C /* skytraq message id: glonass ephemeris */
#define ID_STQACK   0x83 /* skytraq message id: ack to request msg */
#define ID_STQNACK   0x84 /* skytraq message id: nack to request msg */
#define ID_RESTART   0x01 /* skytraq message id: system restart */
#define ID_CFGSERI   0x05 /* skytraq message id: configure serial port */
#define ID_CFGFMT   0x09 /* skytraq message id: configure message format */
#define ID_CFGRATE   0x12 /* skytraq message id: configure message rate */
#define ID_CFGBIN   0x1E /* skytraq message id: configure binary message */
#define ID_GETGLOEPH   0x5B /* skytraq message id: get glonass ephemeris */
#define U1(p)
#define I1(p)

Functions

static uint16_t U2 (uint8_t *p)
static uint32_t U4 (uint8_t *p)
static float R4 (uint8_t *p)
static double R8 (uint8_t *p)
static uint8_t checksum (uint8_t *buff, int len)
static void adj_utcweek (gtime_t time, double *utc)
static int decode_stqtime (raw_t *raw)
static int decode_stqraw (raw_t *raw)
static int decode_stqrawx (raw_t *raw)
static int save_subfrm (int sat, raw_t *raw)
static int decode_ephem (int sat, raw_t *raw)
static int decode_alm1 (int sat, raw_t *raw)
static int decode_alm2 (int sat, raw_t *raw)
static int decode_stqgps (raw_t *raw)
static int decode_stqglo (raw_t *raw)
static int decode_stqgloe (raw_t *raw)
static int decode_stqbds (raw_t *raw)
static int decode_stqack (raw_t *raw)
static int decode_stqnack (raw_t *raw)
static int decode_stq (raw_t *raw)
static int sync_stq (uint8_t *buff, uint8_t data)
int input_stq (raw_t *raw, uint8_t data)
int input_stqf (raw_t *raw, FILE *fp)
int gen_stq (const char *msg, uint8_t *buff)

Macro Definition Documentation

◆ CLIGHT

#define CLIGHT   299792458.0 /* speed of light (m/s) */

Definition at line 37 of file mrtk_rcv_skytraq.c.

◆ D2R

#define D2R   (PI / 180.0) /* deg to rad */

Definition at line 35 of file mrtk_rcv_skytraq.c.

◆ DFRQ1_GLO

#define DFRQ1_GLO   0.56250E6 /* GLONASS G1 bias frequency (Hz/n) */

Definition at line 65 of file mrtk_rcv_skytraq.c.

◆ DFRQ2_GLO

#define DFRQ2_GLO   0.43750E6 /* GLONASS G2 bias frequency (Hz/n) */

Definition at line 67 of file mrtk_rcv_skytraq.c.

◆ FREQ1

#define FREQ1   1.57542E9 /* L1/E1/B1C frequency (Hz) */

Definition at line 57 of file mrtk_rcv_skytraq.c.

◆ FREQ1_CMP

#define FREQ1_CMP   1.561098E9 /* BDS B1I frequency (Hz) */

Definition at line 71 of file mrtk_rcv_skytraq.c.

◆ FREQ1_GLO

#define FREQ1_GLO   1.60200E9 /* GLONASS G1 base frequency (Hz) */

Definition at line 64 of file mrtk_rcv_skytraq.c.

◆ FREQ1a_GLO

#define FREQ1a_GLO   1.600995E9 /* GLONASS G1a frequency (Hz) */

Definition at line 69 of file mrtk_rcv_skytraq.c.

◆ FREQ2

#define FREQ2   1.22760E9 /* L2 frequency (Hz) */

Definition at line 58 of file mrtk_rcv_skytraq.c.

◆ FREQ2_GLO

#define FREQ2_GLO   1.24600E9 /* GLONASS G2 base frequency (Hz) */

Definition at line 66 of file mrtk_rcv_skytraq.c.

◆ FREQ2a_GLO

#define FREQ2a_GLO   1.248060E9 /* GLONASS G2a frequency (Hz) */

Definition at line 70 of file mrtk_rcv_skytraq.c.

◆ FREQ3_GLO

#define FREQ3_GLO   1.202025E9 /* GLONASS G3 frequency (Hz) */

Definition at line 68 of file mrtk_rcv_skytraq.c.

◆ FREQ5

#define FREQ5   1.17645E9 /* L5/E5a/B2a frequency (Hz) */

Definition at line 59 of file mrtk_rcv_skytraq.c.

◆ FREQ6

#define FREQ6   1.27875E9 /* E6/L6 frequency (Hz) */

Definition at line 60 of file mrtk_rcv_skytraq.c.

◆ FREQ7

#define FREQ7   1.20714E9 /* E5b/B2I frequency (Hz) */

Definition at line 61 of file mrtk_rcv_skytraq.c.

◆ FREQ8

#define FREQ8   1.191795E9 /* E5ab/B2ab frequency (Hz) */

Definition at line 62 of file mrtk_rcv_skytraq.c.

◆ FREQ9

#define FREQ9   2.492028E9 /* S frequency (Hz) */

Definition at line 63 of file mrtk_rcv_skytraq.c.

◆ I1

#define I1 ( p)
Value:
(*((int8_t*)(p)))

Definition at line 132 of file mrtk_rcv_skytraq.c.

Referenced by decode_stqgloe().

◆ ID_CFGBIN

#define ID_CFGBIN   0x1E /* skytraq message id: configure binary message */

Definition at line 127 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq().

◆ ID_CFGFMT

#define ID_CFGFMT   0x09 /* skytraq message id: configure message format */

Definition at line 125 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq().

◆ ID_CFGRATE

#define ID_CFGRATE   0x12 /* skytraq message id: configure message rate */

Definition at line 126 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq().

◆ ID_CFGSERI

#define ID_CFGSERI   0x05 /* skytraq message id: configure serial port */

Definition at line 124 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq().

◆ ID_GETGLOEPH

#define ID_GETGLOEPH   0x5B /* skytraq message id: get glonass ephemeris */

Definition at line 128 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq().

◆ ID_RESTART

#define ID_RESTART   0x01 /* skytraq message id: system restart */

Definition at line 123 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq().

◆ ID_STQACK

#define ID_STQACK   0x83 /* skytraq message id: ack to request msg */

Definition at line 120 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQBDSD1

#define ID_STQBDSD1   0xE2 /* skytraq message id: beidou d1 subframe */

Definition at line 116 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQBDSD2

#define ID_STQBDSD2   0xE3 /* skytraq message id: beidou d2 subframe */

Definition at line 117 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQGLO

#define ID_STQGLO   0xE1 /* skytraq message id: glonass string */

Definition at line 115 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQGLOE

#define ID_STQGLOE   0x5C /* skytraq message id: glonass ephemeris */

Definition at line 119 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQGPS

#define ID_STQGPS   0xE0 /* skytraq message id: gps/qzs subframe */

Definition at line 114 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQNACK

#define ID_STQNACK   0x84 /* skytraq message id: nack to request msg */

Definition at line 121 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQRAW

#define ID_STQRAW   0xDD /* skytraq message id: raw measurement */

Definition at line 111 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQRAWX

#define ID_STQRAWX   0xE5 /* skytraq message id: extended raw meas v.1 */

Definition at line 118 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ ID_STQSTAT

#define ID_STQSTAT   0xDF /* skytraq message id: navigation status */

Definition at line 113 of file mrtk_rcv_skytraq.c.

◆ ID_STQSVCH

#define ID_STQSVCH   0xDE /* skytraq message id: SV and channel status */

Definition at line 112 of file mrtk_rcv_skytraq.c.

◆ ID_STQTIME

#define ID_STQTIME   0xDC /* skytraq message id: measurement epoch */

Definition at line 110 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq().

◆ MAXPRNGPS

#define MAXPRNGPS   32

Definition at line 74 of file mrtk_rcv_skytraq.c.

◆ MAXPRNSBS

#define MAXPRNSBS   158

Definition at line 76 of file mrtk_rcv_skytraq.c.

◆ MINPRNGPS

#define MINPRNGPS   1

Definition at line 73 of file mrtk_rcv_skytraq.c.

◆ MINPRNSBS

#define MINPRNSBS   120

Definition at line 75 of file mrtk_rcv_skytraq.c.

◆ P2_11

#define P2_11   4.882812500000000E-04

Definition at line 81 of file mrtk_rcv_skytraq.c.

◆ P2_15

#define P2_15   3.051757812500000E-05

Definition at line 82 of file mrtk_rcv_skytraq.c.

◆ P2_17

#define P2_17   7.629394531250000E-06

Definition at line 83 of file mrtk_rcv_skytraq.c.

◆ P2_19

#define P2_19   1.907348632812500E-06

Definition at line 84 of file mrtk_rcv_skytraq.c.

◆ P2_20

#define P2_20   9.536743164062500E-07

Definition at line 85 of file mrtk_rcv_skytraq.c.

◆ P2_21

#define P2_21   4.768371582031250E-07

Definition at line 86 of file mrtk_rcv_skytraq.c.

◆ P2_23

#define P2_23   1.192092895507810E-07

Definition at line 87 of file mrtk_rcv_skytraq.c.

◆ P2_24

#define P2_24   5.960464477539063E-08

Definition at line 88 of file mrtk_rcv_skytraq.c.

◆ P2_27

#define P2_27   7.450580596923828E-09

Definition at line 89 of file mrtk_rcv_skytraq.c.

◆ P2_29

#define P2_29   1.862645149230957E-09

Definition at line 90 of file mrtk_rcv_skytraq.c.

◆ P2_30

#define P2_30   9.313225746154785E-10

Definition at line 91 of file mrtk_rcv_skytraq.c.

◆ P2_31

#define P2_31   4.656612873077393E-10

Definition at line 92 of file mrtk_rcv_skytraq.c.

◆ P2_32

#define P2_32   2.328306436538696E-10

Definition at line 93 of file mrtk_rcv_skytraq.c.

◆ P2_33

#define P2_33   1.164153218269348E-10

Definition at line 94 of file mrtk_rcv_skytraq.c.

◆ P2_34

#define P2_34   5.820766091346740E-11

Definition at line 95 of file mrtk_rcv_skytraq.c.

◆ P2_35

#define P2_35   2.910383045673370E-11

Definition at line 96 of file mrtk_rcv_skytraq.c.

◆ P2_38

#define P2_38   3.637978807091710E-12

Definition at line 97 of file mrtk_rcv_skytraq.c.

◆ P2_40

#define P2_40   9.094947017729280E-13

Definition at line 98 of file mrtk_rcv_skytraq.c.

◆ P2_43

#define P2_43   1.136868377216160E-13

Definition at line 99 of file mrtk_rcv_skytraq.c.

◆ P2_46

#define P2_46   1.421085471520200E-14

Definition at line 100 of file mrtk_rcv_skytraq.c.

◆ P2_5

#define P2_5   0.03125

Definition at line 79 of file mrtk_rcv_skytraq.c.

◆ P2_50

#define P2_50   8.881784197001252E-16

Definition at line 101 of file mrtk_rcv_skytraq.c.

◆ P2_55

#define P2_55   2.775557561562891E-17

Definition at line 102 of file mrtk_rcv_skytraq.c.

◆ P2_59

#define P2_59   1.734723475976810E-18

Definition at line 103 of file mrtk_rcv_skytraq.c.

◆ P2_6

#define P2_6   0.015625

Definition at line 80 of file mrtk_rcv_skytraq.c.

◆ PI

#define PI   3.1415926535897932 /* pi */

Definition at line 34 of file mrtk_rcv_skytraq.c.

◆ R2D

#define R2D   (180.0 / PI) /* rad to deg */

Definition at line 36 of file mrtk_rcv_skytraq.c.

◆ SC2RAD

#define SC2RAD   3.1415926535898 /* semi-circle to radian (IS-GPS) */

Definition at line 38 of file mrtk_rcv_skytraq.c.

◆ STQSYNC1

#define STQSYNC1   0xA0 /* skytraq binary sync code 1 */

Definition at line 107 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq(), and sync_stq().

◆ STQSYNC2

#define STQSYNC2   0xA1 /* skytraq binary sync code 2 */

Definition at line 108 of file mrtk_rcv_skytraq.c.

Referenced by gen_stq(), and sync_stq().

◆ SYS_CMP

#define SYS_CMP   0x20

Definition at line 46 of file mrtk_rcv_skytraq.c.

◆ SYS_GAL

#define SYS_GAL   0x08

Definition at line 44 of file mrtk_rcv_skytraq.c.

◆ SYS_GLO

#define SYS_GLO   0x04

Definition at line 43 of file mrtk_rcv_skytraq.c.

◆ SYS_GPS

#define SYS_GPS   0x01

Definition at line 41 of file mrtk_rcv_skytraq.c.

◆ SYS_IRN

#define SYS_IRN   0x40

Definition at line 47 of file mrtk_rcv_skytraq.c.

◆ SYS_NONE

#define SYS_NONE   0x00

Definition at line 40 of file mrtk_rcv_skytraq.c.

◆ SYS_QZS

#define SYS_QZS   0x10

Definition at line 45 of file mrtk_rcv_skytraq.c.

◆ SYS_SBS

#define SYS_SBS   0x02

Definition at line 42 of file mrtk_rcv_skytraq.c.

◆ TSYS_CMP

#define TSYS_CMP   5

Definition at line 54 of file mrtk_rcv_skytraq.c.

◆ TSYS_GAL

#define TSYS_GAL   3

Definition at line 52 of file mrtk_rcv_skytraq.c.

◆ TSYS_GLO

#define TSYS_GLO   2

Definition at line 51 of file mrtk_rcv_skytraq.c.

◆ TSYS_GPS

#define TSYS_GPS   0

Definition at line 49 of file mrtk_rcv_skytraq.c.

◆ TSYS_IRN

#define TSYS_IRN   6

Definition at line 55 of file mrtk_rcv_skytraq.c.

◆ TSYS_QZS

#define TSYS_QZS   4

Definition at line 53 of file mrtk_rcv_skytraq.c.

◆ TSYS_UTC

#define TSYS_UTC   1

Definition at line 50 of file mrtk_rcv_skytraq.c.

◆ U1

#define U1 ( p)

Function Documentation

◆ adj_utcweek()

void adj_utcweek ( gtime_t time,
double * utc )
static

Definition at line 181 of file mrtk_rcv_skytraq.c.

References time2gpst().

Referenced by decode_alm1(), and decode_alm2().

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

◆ checksum()

uint8_t checksum ( uint8_t * buff,
int len )
static

Definition at line 171 of file mrtk_rcv_skytraq.c.

Referenced by decode_stq(), and gen_stq().

Here is the caller graph for this function:

◆ decode_alm1()

int decode_alm1 ( int sat,
raw_t * raw )
static

Definition at line 502 of file mrtk_rcv_skytraq.c.

References adj_utcweek(), nav_s::alm, decode_frame(), nav_s::ion_gps, nav_s::ion_qzs, raw_t::nav, satsys(), raw_t::subfrm, SYS_GPS, SYS_QZS, raw_t::time, trace(), nav_s::utc_gps, and nav_s::utc_qzs.

Referenced by decode_stqgps().

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

◆ decode_alm2()

int decode_alm2 ( int sat,
raw_t * raw )
static

Definition at line 517 of file mrtk_rcv_skytraq.c.

References adj_utcweek(), nav_s::alm, decode_frame(), nav_s::ion_qzs, raw_t::nav, satsys(), raw_t::subfrm, SYS_GPS, SYS_QZS, raw_t::time, trace(), and nav_s::utc_qzs.

Referenced by decode_stqgps().

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

◆ decode_ephem()

int decode_ephem ( int sat,
raw_t * raw )
static

Definition at line 481 of file mrtk_rcv_skytraq.c.

References decode_frame(), nav_s::eph, raw_t::ephsat, raw_t::ephset, eph_t::iodc, eph_t::iode, raw_t::nav, raw_t::opt, eph_t::sat, raw_t::subfrm, and trace().

Referenced by decode_stqgps().

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

◆ decode_stq()

int decode_stq ( raw_t * raw)
static

Definition at line 742 of file mrtk_rcv_skytraq.c.

References raw_t::buff, checksum(), decode_stqack(), decode_stqbds(), decode_stqglo(), decode_stqgloe(), decode_stqgps(), decode_stqnack(), decode_stqraw(), decode_stqrawx(), decode_stqtime(), ID_STQACK, ID_STQBDSD1, ID_STQBDSD2, ID_STQGLO, ID_STQGLOE, ID_STQGPS, ID_STQNACK, ID_STQRAW, ID_STQRAWX, ID_STQTIME, raw_t::len, raw_t::msgtype, raw_t::outtype, trace(), and U1.

Referenced by input_stq(), and input_stqf().

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

◆ decode_stqack()

int decode_stqack ( raw_t * raw)
static

Definition at line 712 of file mrtk_rcv_skytraq.c.

References raw_t::buff, raw_t::len, raw_t::msgtype, raw_t::outtype, trace(), and U1.

Referenced by decode_stq().

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

◆ decode_stqbds()

int decode_stqbds ( raw_t * raw)
static

Definition at line 633 of file mrtk_rcv_skytraq.c.

References raw_t::buff, decode_bds_d1(), decode_bds_d2(), nav_s::eph, raw_t::ephsat, raw_t::ephset, getbitu(), raw_t::len, raw_t::msgtype, raw_t::nav, raw_t::opt, raw_t::outtype, eph_t::sat, satno(), setbitu(), raw_t::subfrm, SYS_CMP, timediff(), eph_t::toe, trace(), and U1.

Referenced by decode_stq().

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

◆ decode_stqglo()

int decode_stqglo ( raw_t * raw)
static

Definition at line 562 of file mrtk_rcv_skytraq.c.

References raw_t::buff, decode_glostr(), raw_t::ephsat, raw_t::ephset, geph_t::frq, nav_s::geph, geph_t::iode, raw_t::len, raw_t::msgtype, raw_t::nav, raw_t::opt, raw_t::outtype, geph_t::sat, satno(), setbitu(), raw_t::subfrm, SYS_GLO, raw_t::time, geph_t::tof, trace(), and U1.

Referenced by decode_stq().

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

◆ decode_stqgloe()

int decode_stqgloe ( raw_t * raw)
static

Definition at line 612 of file mrtk_rcv_skytraq.c.

References raw_t::buff, geph_t::frq, nav_s::geph, I1, raw_t::len, raw_t::nav, satno(), SYS_GLO, trace(), and U1.

Referenced by decode_stq().

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

◆ decode_stqgps()

int decode_stqgps ( raw_t * raw)
static

Definition at line 531 of file mrtk_rcv_skytraq.c.

References raw_t::buff, decode_alm1(), decode_alm2(), decode_ephem(), raw_t::len, MAXPRNQZS, MINPRNQZS, raw_t::msgtype, raw_t::outtype, satno(), save_subfrm(), SYS_GPS, SYS_QZS, trace(), and U1.

Referenced by decode_stq().

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

◆ decode_stqnack()

int decode_stqnack ( raw_t * raw)
static

Definition at line 727 of file mrtk_rcv_skytraq.c.

References raw_t::buff, raw_t::len, raw_t::msgtype, raw_t::outtype, trace(), and U1.

Referenced by decode_stq().

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

◆ decode_stqraw()

int decode_stqraw ( raw_t * raw)
static

Definition at line 215 of file mrtk_rcv_skytraq.c.

References raw_t::buff, obsd_t::code, CODE_L1C, CODE_L2I, CODE_NONE, obsd_t::D, obs_t::data, raw_t::iod, obsd_t::L, raw_t::len, obsd_t::LLI, raw_t::lockt, MAXOBS, MAXPRNCMP, MAXPRNGLO, MAXPRNGPS, MAXPRNQZS, MINPRNCMP, MINPRNGLO, MINPRNGPS, MINPRNQZS, raw_t::msgtype, obs_t::n, raw_t::obs, raw_t::opt, raw_t::outtype, obsd_t::P, R4, R8, obsd_t::sat, satno(), obsd_t::SNR, SNR_UNIT, SYS_CMP, SYS_GLO, SYS_GPS, SYS_QZS, obsd_t::time, raw_t::time, trace(), and U1.

Referenced by decode_stq().

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

◆ decode_stqrawx()

int decode_stqrawx ( raw_t * raw)
static

Definition at line 293 of file mrtk_rcv_skytraq.c.

References adjgpsweek(), raw_t::buff, obsd_t::code, CODE_L1C, CODE_L1X, CODE_L2C, CODE_L2I, CODE_L2X, CODE_L3X, CODE_L5X, CODE_L6I, CODE_L6X, CODE_L7I, CODE_L7X, CODE_NONE, obsd_t::D, obs_t::data, geph_t::frq, nav_s::geph, gpst2time(), raw_t::iod, obsd_t::L, raw_t::len, obsd_t::LLI, raw_t::lockt, MAXOBS, raw_t::msgtype, obs_t::n, raw_t::nav, raw_t::obs, raw_t::opt, raw_t::outtype, obsd_t::P, R4, R8, obsd_t::sat, satno(), obsd_t::SNR, SNR_UNIT, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, obsd_t::time, raw_t::time, trace(), U1, U2, and U4.

Referenced by decode_stq().

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

◆ decode_stqtime()

int decode_stqtime ( raw_t * raw)
static

Definition at line 196 of file mrtk_rcv_skytraq.c.

References adjgpsweek(), raw_t::buff, gpst2time(), raw_t::iod, raw_t::len, raw_t::msgtype, raw_t::outtype, raw_t::time, trace(), U1, U2, and U4.

Referenced by decode_stq().

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

◆ gen_stq()

int gen_stq ( const char * msg,
uint8_t * buff )
extern

Definition at line 886 of file mrtk_rcv_skytraq.c.

References checksum(), ID_CFGBIN, ID_CFGFMT, ID_CFGRATE, ID_CFGSERI, ID_GETGLOEPH, ID_RESTART, STQSYNC1, STQSYNC2, trace(), and traceb().

Referenced by strsendcmd().

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

◆ input_stq()

int input_stq ( raw_t * raw,
uint8_t data )
extern

Definition at line 802 of file mrtk_rcv_skytraq.c.

References raw_t::buff, decode_stq(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_stq(), trace(), and U2.

Referenced by input_raw().

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

◆ input_stqf()

int input_stqf ( raw_t * raw,
FILE * fp )
extern

Definition at line 836 of file mrtk_rcv_skytraq.c.

References raw_t::buff, decode_stq(), raw_t::len, MAXRAWLEN, raw_t::nbyte, sync_stq(), trace(), and U2.

Referenced by input_rawf().

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

◆ R4()

float R4 ( uint8_t * p)
static

Definition at line 152 of file mrtk_rcv_skytraq.c.

◆ R8()

double R8 ( uint8_t * p)
static

Definition at line 161 of file mrtk_rcv_skytraq.c.

◆ save_subfrm()

int save_subfrm ( int sat,
raw_t * raw )
static

Definition at line 454 of file mrtk_rcv_skytraq.c.

References raw_t::buff, raw_t::subfrm, and trace().

Referenced by decode_stqgps().

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

◆ sync_stq()

int sync_stq ( uint8_t * buff,
uint8_t data )
static

Definition at line 783 of file mrtk_rcv_skytraq.c.

References STQSYNC1, and STQSYNC2.

Referenced by input_stq(), and input_stqf().

Here is the caller graph for this function:

◆ U2()

uint16_t U2 ( uint8_t * p)
static

Definition at line 134 of file mrtk_rcv_skytraq.c.

◆ U4()

uint32_t U4 ( uint8_t * p)
static

Definition at line 143 of file mrtk_rcv_skytraq.c.