Skip to content

Commit 7b974ca

Browse files
committed
Add notes about negative elevation limits
1 parent ebe96f9 commit 7b974ca

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Firmware/RTK_Everywhere/GNSS_Mosaic.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,8 @@ bool GNSS_MOSAIC::setDataBaudRate(uint32_t baud)
24332433
// Set the elevation in degrees
24342434
// Inputs:
24352435
// elevationDegrees: The elevation value in degrees
2436+
// Notes:
2437+
// mosaic supports negative elevations, but our firmware only support 0-90
24362438
//----------------------------------------
24372439
bool GNSS_MOSAIC::setElevation(uint8_t elevationDegrees)
24382440
{

Firmware/RTK_Everywhere/GNSS_ZED.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,9 @@ bool GNSS_ZED::configureBase()
406406
settings.ubxMessageRatesBase[x]); // UBLOX_CFG UART1 + 2 = USB
407407
}
408408

409-
response &= _zed->addCfgValset(UBLOX_CFG_NAVSPG_INFIL_MINELEV, settings.minElev); // Set minimum elevation
409+
// Set minimum elevation
410+
// Note: ZED supports negative elevations, but our firmware only allows 0-90
411+
response &= _zed->addCfgValset(UBLOX_CFG_NAVSPG_INFIL_MINELEV, settings.minElev);
410412

411413
response &= _zed->sendCfgValset(); // Closing value
412414

Firmware/RTK_Everywhere/settings.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,9 @@ struct Settings
937937
uint8_t dynamicModel = 254; // Default will be applied by checkGNSSArrayDefaults
938938
bool enablePrintRoverAccuracy = true;
939939
int16_t minCNO = 6; // Minimum satellite signal level for navigation. ZED-F9P default is 6 dBHz
940-
uint8_t minElev = 10; // Minimum elevation (in deg) for a GNSS satellite to be used in NAV
940+
// Minimum elevation (in deg) for a GNSS satellite to be used in NAV
941+
// Note: we use 8-bit unsigned here, but some platforms (ZED, mosaic-X5) support negative elevation limits
942+
uint8_t minElev = 10;
941943

942944
// RTC (Real Time Clock)
943945
bool enablePrintRtcSync = false;

0 commit comments

Comments
 (0)