Skip to content

Commit

Permalink
Fixed the differential pressure initialization issue.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iandareid committed Jan 2, 2025
1 parent 510e092 commit 4a64e24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rosplane/src/estimator_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 4a64e24

Please sign in to comment.