From 49bbba27f4764446c212bcd69a206e3b12af23ee Mon Sep 17 00:00:00 2001
From: Ethan <jiaao@student.unimelb.edu.au>
Date: Tue, 21 May 2024 12:53:02 +0800
Subject: [PATCH] time constrain

---
 catkin_ws/src/asclinic_pkg/src/Kalman.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catkin_ws/src/asclinic_pkg/src/Kalman.cpp b/catkin_ws/src/asclinic_pkg/src/Kalman.cpp
index 678c87ec..20a53a4c 100644
--- a/catkin_ws/src/asclinic_pkg/src/Kalman.cpp
+++ b/catkin_ws/src/asclinic_pkg/src/Kalman.cpp
@@ -127,7 +127,7 @@ void ImageAnswer(const asclinic_pkg::position& msg) {
     constrain_time = ros::Time::now();
     constrain_duration = constrain_time - begin_time;
     float temp_value = constrain_duration.toSec();
-    if (temp_value<30) {
+    if (temp_value < 50) {
         return;
     }
     // Check if elapsed time is less than 0.5 seconds
-- 
GitLab