Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnss visibility detection enabled #92

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ CONFIG_SMF=y
# Location
CONFIG_LOCATION=y
CONFIG_LOCATION_DATA_DETAILS=y
CONFIG_LOCATION_METHOD_GNSS=n
CONFIG_LOCATION_METHOD_GNSS=y
CONFIG_LOCATION_REQUEST_DEFAULT_GNSS_TIMEOUT=200000
CONFIG_LOCATION_REQUEST_DEFAULT_TIMEOUT=300000
CONFIG_LTE_NETWORK_MODE_LTE_M_NBIOT_GPS=y
Expand All @@ -136,9 +136,9 @@ CONFIG_NRF_CLOUD_AGNSS=y

# Wi-Fi location
CONFIG_LOCATION_METHOD_WIFI=y
#CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=y
#CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_WIFI=y
#CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_THIRD_CELLULAR=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_WIFI=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_THIRD_CELLULAR=y

# Align this with CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT
CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT=10
Expand Down
4 changes: 4 additions & 0 deletions app/src/modules/location/location.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ void location_module_entry(void)
k_sem_take(&trigger_sem, K_FOREVER);
location_config_defaults_set(&config, 0, NULL);
config.mode = LOCATION_REQ_MODE_ALL;
if(config.methods[0].method==LOCATION_METHOD_GNSS) {
config.methods[0].gnss.visibility_detection=true;

}
err = location_request(&config);
if (err)
{
Expand Down
Loading