mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 07:28:54 +08:00
gps: ubx: added jamming sensitivity parameter (#26386)
* gps: ubx: added jamming sensitivity parameter GPS_UBX_JAM_DET * submodule * gps: submodule to main
This commit is contained in:
+1
-1
Submodule src/drivers/gps/devices updated: a213f386d3...5ed844c374
@@ -851,6 +851,13 @@ GPS::run()
|
||||
param_get(handle, &ppk_output);
|
||||
}
|
||||
|
||||
handle = param_find("GPS_UBX_JAM_DET");
|
||||
int32_t jam_det_sensitivity_hi = 1;
|
||||
|
||||
if (handle != PARAM_INVALID) {
|
||||
param_get(handle, &jam_det_sensitivity_hi);
|
||||
}
|
||||
|
||||
int32_t gnssSystemsParam = static_cast<int32_t>(GPSHelper::GNSSSystemsMask::RECEIVER_DEFAULTS);
|
||||
|
||||
if (_instance == Instance::Main) {
|
||||
@@ -941,6 +948,7 @@ GPS::run()
|
||||
.heading_offset = heading_offset,
|
||||
.uart2_baudrate = f9p_uart2_baudrate,
|
||||
.ppk_output = ppk_output > 0,
|
||||
.jam_det_sensitivity_hi = jam_det_sensitivity_hi > 0,
|
||||
.mode = ubx_mode,
|
||||
};
|
||||
|
||||
|
||||
@@ -198,6 +198,20 @@ PARAM_DEFINE_INT32(GPS_UBX_CFG_INTF, 0);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GPS_UBX_PPK, 0);
|
||||
|
||||
/**
|
||||
* u-blox GPS jamming detection high sensitivity mode
|
||||
*
|
||||
* Enables or disables the high sensitivity mode for the u-blox jamming detection
|
||||
* (CFG-SEC-JAMDET_SENSITIVITY_HI). When enabled, the receiver uses a
|
||||
* more sensitive algorithm to detect jamming. Disabling this may reduce false
|
||||
* positives in electrically noisy environments.
|
||||
*
|
||||
* @boolean
|
||||
* @reboot_required true
|
||||
* @group GPS
|
||||
*/
|
||||
PARAM_DEFINE_INT32(GPS_UBX_JAM_DET, 1);
|
||||
|
||||
/**
|
||||
* Wipes the flash config of UBX modules.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user