Skip to content

Commit 6471965

Browse files
committed
Update Example13_autoHPPOSLLH_with_Callback.ino
1 parent 129f275 commit 6471965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: examples/ZED-F9P/Example13_autoHPPOSLLH_with_Callback/Example13_autoHPPOSLLH_with_Callback.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void printHPdata(UBX_NAV_HPPOSLLH_data_t ubxDataStruct)
6161
Serial.print(F(" "));
6262
Serial.print(highResLongitudeHp);
6363

64-
unsigned long horizAccuracy = ubxDataStruct.hAcc;
64+
float horizAccuracy = ((float)ubxDataStruct.hAcc) / 10000.0; // Convert hAcc from mm*0.1 to m
6565
Serial.print(F(" Horiz accuracy: "));
6666
Serial.println(horizAccuracy);
6767
}

0 commit comments

Comments
 (0)