From 00513f10011ad6ad693fbbc9b4b5dc7df36f9a79 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 15 Feb 2023 11:28:47 -0800 Subject: [PATCH] locationd: adjust GPS alive check for QCOM GPS (#27339) * locationd: adjust GPS alive check for QCOM GPS * update refs * update refs --- selfdrive/locationd/locationd.cc | 2 +- selfdrive/test/process_replay/ref_commit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/locationd/locationd.cc b/selfdrive/locationd/locationd.cc index 8941b50248..307626506a 100755 --- a/selfdrive/locationd/locationd.cc +++ b/selfdrive/locationd/locationd.cc @@ -619,7 +619,7 @@ kj::ArrayPtr Localizer::get_message_bytes(MessageBuilder& msg_build } bool Localizer::is_gps_ok() { - return (this->kf->get_filter_time() - this->last_gps_msg) < 1.0; + return (this->kf->get_filter_time() - this->last_gps_msg) < 2.0; } bool Localizer::critical_services_valid(std::map critical_services) { diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index ed1875dcbe..85eada072e 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -3e53ce81f1ce26409fdc4479e650ef5626130876 \ No newline at end of file +c7bb411b37ab7ff573402b6e4fa24f796cbb2ee8 \ No newline at end of file