We need to change this line:
|
const uint32_t UBLOX_CFG_NAVSPG_INFIL_MINELEV = UBX_CFG_U1 | 0x201100a4; // Minimum elevation for a GNSS satellite to be used in navigation |
The type should be UBX_CFG_I1 (8-bit signed), not UBX_CFG_U1 (8-bit unsigned).
You would probably never notice, unless you try to set a negative elevation limit.