Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Commit 78a6a59

Browse files
authored
Initialize varialbes
1 parent 1643580 commit 78a6a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

march_joint_inertia_controller/src/inertia_estimator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ void InertiaEstimator::applyButter()
103103
{
104104
// Apply a sixth order Butterworth filter over the effort and acceleration signals
105105
int i = 0;
106-
double x;
107-
double x_n;
106+
double x = 0.0;
107+
double x_n = 0.0;
108108

109109
for (const auto& so : sos_)
110110
{

0 commit comments

Comments
 (0)