Skip to content

Commit 924a9f8

Browse files
committed
Convert ebno to dB
1 parent 9c990f5 commit 924a9f8

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

examples/Example30_NEO-D9S/Example30_NEO-D9S.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ void printRXMPMP(UBX_RXM_PMP_data_t *pmpData)
4545
Serial.print(F("numBytesUserData : "));
4646
Serial.println(pmpData->numBytesUserData);
4747

48-
Serial.print(F("serviceIdentifier: "));
49-
Serial.println(pmpData->serviceIdentifier);
48+
Serial.print(F("serviceIdentifier: 0x"));
49+
Serial.println(pmpData->serviceIdentifier, HEX);
5050

5151
Serial.print(F("uniqueWordBitErrors: "));
5252
Serial.println(pmpData->uniqueWordBitErrors);
5353

5454
Serial.print(F("fecBits: "));
5555
Serial.println(pmpData->fecBits);
5656

57-
Serial.print(F("ebno: "));
58-
Serial.println(pmpData->ebno);
57+
Serial.print(F("ebno (dB): "));
58+
Serial.println((double)pmpData->ebno / 8, 3); //Convert ebno to dB
5959

6060
Serial.println();
6161
}

examples/ZED-F9P/Example18_PointPerfectClient/Example18_PointPerfectClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void printPVTdata(UBX_NAV_PVT_data_t *ubxDataStruct)
127127
void printRXMCOR(UBX_RXM_COR_data_t *ubxDataStruct)
128128
{
129129
Serial.print(F("UBX-RXM-COR: ebno: "));
130-
Serial.print(ubxDataStruct->ebno);
130+
Serial.print((double)ubxDataStruct->ebno / 8, 3); //Convert to dB
131131

132132
Serial.print(F(" protocol: "));
133133
if (ubxDataStruct->statusInfo.bits.protocol == 1)

examples/ZED-F9P/Example19_LBand_Corrections_with_NEO-D9S/Example19_LBand_Corrections_with_NEO-D9S.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void printPVTdata(UBX_NAV_PVT_data_t *ubxDataStruct)
148148
void printRXMCOR(UBX_RXM_COR_data_t *ubxDataStruct)
149149
{
150150
Serial.print(F("UBX-RXM-COR: ebno: "));
151-
Serial.print(ubxDataStruct->ebno);
151+
Serial.print((double)ubxDataStruct->ebno / 8, 3); //Convert to dB
152152

153153
Serial.print(F(" protocol: "));
154154
if (ubxDataStruct->statusInfo.bits.protocol == 1)

examples/ZED-F9P/Example19_LBand_Corrections_with_NEO-D9S/secrets.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
const uint8_t currentKeyLengthBytes = 16;
2020
const char currentDynamicKey[] = "<ADD YOUR L-Band or L-Band + IP DYNAMIC KEY HERE>";
21-
const uint16_t currentKeyGPSWeek = 2192; // Update this when you add new keys
22-
const uint32_t currentKeyGPSToW = 518400;
21+
const uint16_t currentKeyGPSWeek = 2254; // Update this when you add new keys
22+
const uint32_t currentKeyGPSToW = 0;
2323

2424
const uint8_t nextKeyLengthBytes = 16;
2525
const char nextDynamicKey[] = "<ADD YOUR L-Band or L-Band + IP DYNAMIC KEY HERE>";
26-
const uint16_t nextKeyGPSWeek = 2196; // Update this when you add new keys
27-
const uint32_t nextKeyGPSToW = 518400;
26+
const uint16_t nextKeyGPSWeek = 2258; // Update this when you add new keys
27+
const uint32_t nextKeyGPSToW = 0;

examples/ZED-F9P/Example20_PMP_with_L-Band_Keys_via_MQTT/Example20_PMP_with_L-Band_Keys_via_MQTT.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void printPVTdata(UBX_NAV_PVT_data_t *ubxDataStruct)
161161
void printRXMCOR(UBX_RXM_COR_data_t *ubxDataStruct)
162162
{
163163
Serial.print(F("UBX-RXM-COR: ebno: "));
164-
Serial.print(ubxDataStruct->ebno);
164+
Serial.print((double)ubxDataStruct->ebno / 8, 3); //Convert to dB
165165

166166
Serial.print(F(" protocol: "));
167167
if (ubxDataStruct->statusInfo.bits.protocol == 1)

examples/ZED-F9P/Example22_QZSSL6_Corrections_with_NEO-D9C/Example22_QZSSL6_Corrections_with_NEO-D9C.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void printPVTdata(UBX_NAV_PVT_data_t *ubxDataStruct)
172172
void printRXMCOR(UBX_RXM_COR_data_t *ubxDataStruct)
173173
{
174174
Serial.print(F("UBX-RXM-COR: ebno: "));
175-
Serial.print(ubxDataStruct->ebno);
175+
Serial.print((double)ubxDataStruct->ebno / 8, 3); //Convert to dB
176176

177177
Serial.print(F(" protocol: "));
178178
if (ubxDataStruct->statusInfo.bits.protocol == 1)

0 commit comments

Comments
 (0)