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 Oct 31, 2024
1 parent a8612b2 commit 3beadf2
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 3beadf2

Please sign in to comment.