From 4a64e24de436a586430c3d6ea793cb32a0bdf9d9 Mon Sep 17 00:00:00 2001 From: Ian Reid Date: Thu, 2 Jan 2025 12:01:47 -0700 Subject: [PATCH] Fixed the differential pressure initialization issue. The differential pressure would be randomly initialized. If the value was large then the differential pressure measurement would never change. Initializing it as holding still solved this issue. --- rosplane/src/estimator_ros.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rosplane/src/estimator_ros.cpp b/rosplane/src/estimator_ros.cpp index 0c94a6a..d159ed7 100644 --- a/rosplane/src/estimator_ros.cpp +++ b/rosplane/src/estimator_ros.cpp @@ -53,6 +53,8 @@ EstimatorROS::EstimatorROS() param_filepath_ = full_path.string(); + input_.diff_pres = 0.0; // Initalize the differential_pressure measurement to zero. + set_timer(); }