From 64719654c5a4040ffe06b57743bd0db01fc3fa1d Mon Sep 17 00:00:00 2001 From: PaulZC Date: Sat, 9 Jan 2021 09:41:24 +0000 Subject: [PATCH] Update Example13_autoHPPOSLLH_with_Callback.ino --- .../Example13_autoHPPOSLLH_with_Callback.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ZED-F9P/Example13_autoHPPOSLLH_with_Callback/Example13_autoHPPOSLLH_with_Callback.ino b/examples/ZED-F9P/Example13_autoHPPOSLLH_with_Callback/Example13_autoHPPOSLLH_with_Callback.ino index 08c2a75..94a6e75 100644 --- a/examples/ZED-F9P/Example13_autoHPPOSLLH_with_Callback/Example13_autoHPPOSLLH_with_Callback.ino +++ b/examples/ZED-F9P/Example13_autoHPPOSLLH_with_Callback/Example13_autoHPPOSLLH_with_Callback.ino @@ -61,7 +61,7 @@ void printHPdata(UBX_NAV_HPPOSLLH_data_t ubxDataStruct) Serial.print(F(" ")); Serial.print(highResLongitudeHp); - unsigned long horizAccuracy = ubxDataStruct.hAcc; + float horizAccuracy = ((float)ubxDataStruct.hAcc) / 10000.0; // Convert hAcc from mm*0.1 to m Serial.print(F(" Horiz accuracy: ")); Serial.println(horizAccuracy); }