diff options
author | Hoss Zhou <zhouh@codeaurora.org> | 2018-11-27 15:00:57 +0800 |
---|---|---|
committer | Hoss Zhou <zhouh@codeaurora.org> | 2018-11-30 16:07:06 +0800 |
commit | 3203504a28c72cf9823f1864b46b8692cf7979ec (patch) | |
tree | 29e63e8eff421f98e9e1f1170a3895ff3e34dacf /utils/loc_cfg.cpp | |
parent | 372ec44be0cbe58e5cd8b0d2df8ddf89b9a64be7 (diff) | |
download | gps-3203504a28c72cf9823f1864b46b8692cf7979ec.tar.gz |
PZ90 datum support
add a configuration DATUM_TYPE in gps.conf to configure
datum type. Default datum type is WGS84.
Change-Id: Ia8404aa5cf6d49741b9f487f8b086abd095f21ea
CRs-fixed: 2338883
Diffstat (limited to 'utils/loc_cfg.cpp')
-rw-r--r-- | utils/loc_cfg.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp index 71dfc66..3676bd5 100644 --- a/utils/loc_cfg.cpp +++ b/utils/loc_cfg.cpp @@ -57,12 +57,14 @@ /* Parameter data */ static uint32_t DEBUG_LEVEL = 0xff; static uint32_t TIMESTAMP = 0; +static uint32_t DATUM_TYPE = 0; /* Parameter spec table */ static const loc_param_s_type loc_param_table[] = { {"DEBUG_LEVEL", &DEBUG_LEVEL, NULL, 'n'}, {"TIMESTAMP", &TIMESTAMP, NULL, 'n'}, + {"DATUM_TYPE", &DATUM_TYPE, NULL, 'n'}, }; static const int loc_param_num = sizeof(loc_param_table) / sizeof(loc_param_s_type); @@ -86,6 +88,29 @@ const char LOC_PATH_XTWIFI_CONF[] = LOC_PATH_XTWIFI_CONF_STR; const char LOC_PATH_QUIPC_CONF[] = LOC_PATH_QUIPC_CONF_STR; /*=========================================================================== +FUNCTION loc_get_datum_type + +DESCRIPTION + get datum type + +PARAMETERS: + N/A + +DEPENDENCIES + N/A + +RETURN VALUE + DATUM TYPE + +SIDE EFFECTS + N/A +===========================================================================*/ +int loc_get_datum_type() +{ + return DATUM_TYPE; +} + +/*=========================================================================== FUNCTION loc_set_config_entry DESCRIPTION |