Skip to content

Commit

Permalink
remove addition of zero Z valued grid point
Browse files Browse the repository at this point in the history
X.Z() never gets populated with a nonzero value besides it's initial construction value of 0. Thus this addition is extraneous.

Co-authored-by: Jonathan <jonathan.r.eastridge.civ@us.navy.mil>
  • Loading branch information
acxz and jeastnswc authored Jul 19, 2022
1 parent e5544ed commit 5143556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usv_gazebo_plugins/src/usv_gazebo_dynamics_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void UsvDynamicsPlugin::Update()
}

// Vertical wave displacement.
double dz = depth + X.Z();
double dz = depth;

// Total z location of boat grid point relative to water surface
double deltaZ = (this->waterLevel + dz) - kDdz;
Expand Down

0 comments on commit 5143556

Please sign in to comment.