Skip to content

Commit ce95196

Browse files
committed
Updating default for u-blox min signal and min elevation
1 parent 25a2249 commit ce95196

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/drivers/gps/gps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,14 +736,14 @@ GPS::run()
736736
param_get(handle, &gps_ubx_dynmodel);
737737
}
738738

739-
int32_t gps_ubx_min_cno = 6;
739+
int32_t gps_ubx_min_cno = 0;
740740
handle = param_find("GPS_UBX_MIN_CNO");
741741

742742
if (handle != PARAM_INVALID) {
743743
param_get(handle, &gps_ubx_min_cno);
744744
}
745745

746-
int32_t gps_ubx_min_elev = 10;
746+
int32_t gps_ubx_min_elev = 0;
747747
handle = param_find("GPS_UBX_MIN_ELEV");
748748

749749
if (handle != PARAM_INVALID) {

src/drivers/gps/params.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ PARAM_DEFINE_INT32(GPS_UBX_DYNMODEL, 7);
7272
/**
7373
* u-blox GPS minimum satellite signal level for navigation
7474
*
75+
* When set to 0 (default), default minimum satellite signal level set by u-blox will be used.
76+
*
7577
* @min 0
7678
* @max 255
7779
* @unit dBHz
@@ -80,11 +82,13 @@ PARAM_DEFINE_INT32(GPS_UBX_DYNMODEL, 7);
8082
*
8183
* @group GPS
8284
*/
83-
PARAM_DEFINE_INT32(GPS_UBX_MIN_CNO, 6);
85+
PARAM_DEFINE_INT32(GPS_UBX_MIN_CNO, 0);
8486

8587
/**
8688
* u-blox GPS minimum elevation for a GNSS satellite to be used in navigation
8789
*
90+
* When set to 0 (default), default minimum elevation set by u-blox will be used.
91+
*
8892
* @min 0
8993
* @max 127
9094
* @unit deg
@@ -93,7 +97,7 @@ PARAM_DEFINE_INT32(GPS_UBX_MIN_CNO, 6);
9397
*
9498
* @group GPS
9599
*/
96-
PARAM_DEFINE_INT32(GPS_UBX_MIN_ELEV, 10);
100+
PARAM_DEFINE_INT32(GPS_UBX_MIN_ELEV, 0);
97101

98102
/**
99103
* Enable sat info (if available)

0 commit comments

Comments
 (0)