From a6d157189fd2de6ad07b2c11e7c81d054bece42e Mon Sep 17 00:00:00 2001 From: James Huang Date: Wed, 28 Aug 2024 17:42:44 +0800 Subject: [PATCH] gps: Update official release 4.15.3_6_240905_R2 config Add ENABLE_NLP_ALONG_WITH_UBP=0 in default carrier config Add ChipCfg_Timemark_Option=1 to enable 1pps timemark output Support follwoing cfg items to change sampling rate. AccelSamplingPeriodUs=10000 MagnSamplingPeriodUs=10000 GyroSamplingPeriodUs=10000 PressSamplingPeriodUs=50000 OrientationSamplingPeriodUs=10000 StepCounterSamplingPeriodUs=1000000 Bug: 321229708 Bug: 355590184 Bug: 362556705 Test: CTS/VTS, basic validation test/stress test/SST/field test Change-Id: Icac241ff9cb7e7c168c14394e4fdd1dd197f2dab --- location/user/gps.cfg | 8 ++++++++ location/userdebug/gps.cfg | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/location/user/gps.cfg b/location/user/gps.cfg index e0a1099..4d23759 100644 --- a/location/user/gps.cfg +++ b/location/user/gps.cfg @@ -18,6 +18,7 @@ gnss_device_data_port_chpp_spi_device=/dev/gnss_ipc gnss_device_data_port_chpp_present=1 GlueLayer_YearOfHW=2023 scheduling_enabled=1 +ChipCfg_Timemark_Option=1 ChipCfg_VDR_high_end_Distance = 200 ChipCfg_VDR_low_end_Distance = 200 ChipCfg_VDR_high_end_Time = 20 @@ -54,6 +55,12 @@ GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 Chip_Configuration_mems_data_Configuration=0x25 +AccelSamplingPeriodUs=10000 +MagnSamplingPeriodUs=10000 +GyroSamplingPeriodUs=10000 +PressSamplingPeriodUs=50000 +OrientationSamplingPeriodUs=10000 +StepCounterSamplingPeriodUs=1000000 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 @@ -110,6 +117,7 @@ ENABLE_LPP_CP=1 ENABLE_LPP_UP=0 ENABLE_LPPE_CP=3 ENABLE_LPPE_UP=0 +ENABLE_NLP_ALONG_WITH_UBP=0 ENABLE_NLP_IN_LPPE=1 ENABLE_NLP_IN_AGNSS=0 ENABLE_LPP_HA_GAD_SHAPE=0 diff --git a/location/userdebug/gps.cfg b/location/userdebug/gps.cfg index fd9266f..7bc7d36 100644 --- a/location/userdebug/gps.cfg +++ b/location/userdebug/gps.cfg @@ -53,6 +53,9 @@ gnss_device_data_port_chpp_present=1 GlueLayer_YearOfHW=2023 scheduling_enabled=1 +# 1pps timemark output: 0: disable 1: enable +ChipCfg_Timemark_Option=1 + # VDR End condition (meter, meter, sec, sec) ChipCfg_VDR_high_end_Distance = 200 ChipCfg_VDR_low_end_Distance = 200 @@ -189,6 +192,12 @@ GlueLayer_MeasCorrCap=7 # 0x0010: CHIP_CONFIG_MEMS_ORIENTATION_AVAILABLE # 0x0020: CHIP_CONFIG_MEMS_STEPCOUNTER_AVAILABLE Chip_Configuration_mems_data_Configuration=0x25 +AccelSamplingPeriodUs=10000 +MagnSamplingPeriodUs=10000 +GyroSamplingPeriodUs=10000 +PressSamplingPeriodUs=50000 +OrientationSamplingPeriodUs=10000 +StepCounterSamplingPeriodUs=1000000 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 @@ -266,6 +275,7 @@ ENABLE_LPP_CP=1 ENABLE_LPP_UP=0 ENABLE_LPPE_CP=3 ENABLE_LPPE_UP=0 +ENABLE_NLP_ALONG_WITH_UBP=0 ENABLE_NLP_IN_LPPE=1 ENABLE_NLP_IN_AGNSS=0 ENABLE_LPP_HA_GAD_SHAPE=0