Skip to content

Commit

Permalink
fix: bug fix for an average process
Browse files Browse the repository at this point in the history
  • Loading branch information
technolojin committed Nov 14, 2024
1 parent 2c3bffc commit 02d13f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ void ScanGroundFilterComponent::checkContinuousGndGrid(
gnd_buff_z_mean += it->avg_height;
}

gnd_buff_radius /= static_cast<float>(gnd_grid_buffer_size_ - 1);
gnd_buff_z_mean /= static_cast<float>(gnd_grid_buffer_size_ - 1);
gnd_buff_radius /= static_cast<float>(gnd_grid_buffer_size_);
gnd_buff_z_mean /= static_cast<float>(gnd_grid_buffer_size_);

float tmp_delta_mean_z = gnd_grids_list.back().avg_height - gnd_buff_z_mean;
float tmp_delta_radius = gnd_grids_list.back().radius - gnd_buff_radius;
Expand Down

0 comments on commit 02d13f4

Please sign in to comment.