MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_spp.h
Go to the documentation of this file.
1/*------------------------------------------------------------------------------
2 * mrtk_spp.h : standard single-point positioning functions
3 *
4 * Copyright (C) 2026 H.SHIONO (MRTKLIB Project)
5 * Copyright (C) 2023-2025 Cabinet Office, Japan
6 * Copyright (C) 2024-2025 Lighthouse Technology & Consulting Co. Ltd.
7 * Copyright (C) 2023-2025 Japan Aerospace Exploration Agency
8 * Copyright (C) 2023-2025 TOSHIBA ELECTRONIC TECHNOLOGIES CORPORATION
9 * Copyright (C) 2015- Mitsubishi Electric Corp.
10 * Copyright (C) 2014 Geospatial Information Authority of Japan
11 * Copyright (C) 2014 T.SUZUKI
12 * Copyright (C) 2007-2023 T.TAKASU
13 *
14 * SPDX-License-Identifier: BSD-2-Clause
15 *----------------------------------------------------------------------------*/
16/**
17 * @file mrtk_spp.h
18 * @brief MRTKLIB Single-Point Positioning Module — SPP functions.
19 *
20 * This header provides the standard single-point positioning function
21 * (pntpos), extracted from pntpos.c with zero algorithmic changes.
22 *
23 * @note Functions declared here are implemented in mrtk_spp.c.
24 * @note ionocorr/tropcorr have been moved to mrtk_atmos.h / mrtk_atmos.c.
25 */
26#ifndef MRTK_SPP_H
27#define MRTK_SPP_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
35#include "mrtklib/mrtk_nav.h"
36#include "mrtklib/mrtk_obs.h"
37#include "mrtklib/mrtk_opt.h"
38#include "mrtklib/mrtk_sol.h"
39#include "mrtklib/mrtk_time.h"
40
41/*============================================================================
42 * Single-Point Positioning Functions
43 *===========================================================================*/
44
45/**
46 * @brief Compute receiver position, velocity, clock bias by single-point
47 * positioning with pseudorange and doppler observables.
48 * @param[in] ctx Runtime context (NULL = use global)
49 * @param[in] obs Observation data
50 * @param[in] n Number of observation data
51 * @param[in] nav Navigation data
52 * @param[in] opt Processing options
53 * @param[in,out] sol Solution
54 * @param[in,out] azel Azimuth/elevation angle (rad) (NULL: no output)
55 * @param[in,out] ssat Satellite status (NULL: no output)
56 * @param[out] msg Error message for error exit
57 * @return Status (1:ok, 0:error)
58 */
59int pntpos(mrtk_ctx_t* ctx, const obsd_t* obs, int n, const nav_t* nav, const prcopt_t* opt, sol_t* sol, double* azel,
60 ssat_t* ssat, char* msg);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* MRTK_SPP_H */
MRTKLIB Context — runtime context for processing, trace, and error handling.
struct nav_s nav_t
Definition mrtk_eph.h:40
MRTKLIB Foundation — Common types, standard includes, and system constants (MAXSAT,...
MRTKLIB Navigation Module — Navigation data types and satellite/nav utility functions.
MRTKLIB Observation Module — Observation data types and utility functions.
MRTKLIB Options Module — Processing and solution option types.
MRTKLIB Solution Module — Solution data types and I/O functions.
int pntpos(mrtk_ctx_t *ctx, const obsd_t *obs, int n, const nav_t *nav, const prcopt_t *opt, sol_t *sol, double *azel, ssat_t *ssat, char *msg)
Compute receiver position, velocity, clock bias by single-point positioning with pseudorange and dopp...
Definition mrtk_spp.c:865
MRTKLIB Time Module — GNSS time types and conversion functions.
Runtime context for MRTKLIB processing.
Observation data record.
Definition mrtk_obs.h:44