mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 08:38:53 +08:00
drivers/uavcan: GNSS set system time based on fix_type instead of valid_pos_cov
This commit is contained in:
@@ -436,7 +436,7 @@ void UavcanGnssBridge::process_fixx(const uavcan::ReceivedDataStructure<FixType>
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user