Skip to content

Commit

Permalink
ubx: separate config for jamming monitor
Browse files Browse the repository at this point in the history
The valset for the jamming monitor fails for the NEO-F9P (Here 4),
unless it's done as a separate valset like in this patch.

Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes authored and bkueng committed Feb 9, 2024
1 parent bc72f55 commit f48cc01
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/ubx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,6 @@ int GPSDriverUBX::configureDevice(const GPSConfig &config, const int32_t uart2_b
cfgValset<uint8_t>(UBX_CFG_KEY_ODO_OUTLPVEL, 0, cfg_valset_msg_size);
cfgValset<uint8_t>(UBX_CFG_KEY_ODO_OUTLPCOG, 0, cfg_valset_msg_size);

// enable jamming monitor
cfgValset<uint8_t>(UBX_CFG_KEY_ITFM_ENABLE, 1, cfg_valset_msg_size);

// measurement rate
// In case of F9P not in moving base mode we use 10Hz, otherwise 8Hz (receivers such as M9N can go higher as well, but
// the number of used satellites will be restricted to 16. Not mentioned in datasheet)
Expand Down Expand Up @@ -590,6 +587,17 @@ int GPSDriverUBX::configureDevice(const GPSConfig &config, const int32_t uart2_b

waitForAck(UBX_MSG_CFG_VALSET, UBX_CONFIG_TIMEOUT, false);

cfg_valset_msg_size = initCfgValset();

// enable jamming monitor
cfgValset<uint8_t>(UBX_CFG_KEY_ITFM_ENABLE, 1, cfg_valset_msg_size);

if (!sendMessage(UBX_MSG_CFG_VALSET, (uint8_t *)&_buf, cfg_valset_msg_size)) {
return -1;
}

waitForAck(UBX_MSG_CFG_VALSET, UBX_CONFIG_TIMEOUT, false);

// configure active GNSS systems (leave signal bands as is)
// Note: For M10 configuration if changing from default. As per the
// MAX-M10S integration guide UBX-20053088 - R03, see section
Expand Down

0 comments on commit f48cc01

Please sign in to comment.