From d61c0697a595b9498125d83a2c25c53709d07c1b Mon Sep 17 00:00:00 2001 From: dirksavage88 Date: Wed, 23 Oct 2024 17:33:09 -0400 Subject: [PATCH] fixes Signed-off-by: dirksavage88 --- src/drivers/uavcan/sensors/gnss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/uavcan/sensors/gnss.cpp b/src/drivers/uavcan/sensors/gnss.cpp index 31320fa0178e..dde8f46b6832 100644 --- a/src/drivers/uavcan/sensors/gnss.cpp +++ b/src/drivers/uavcan/sensors/gnss.cpp @@ -461,7 +461,7 @@ void UavcanGnssBridge::process_fixx(const uavcan::ReceivedDataStructure } // If we haven't already done so, set the system clock using GPS data - if (valid_pos_cov && !_system_clock_set) { + if ((fix_type >= sensor_gps_s::FIX_TYPE_2D) && !_system_clock_set) { timespec ts{}; // get the whole microseconds