Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Update ring_ground_filter.cpp #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void GroundFilter::InitRadiusTable(int in_model)
b = max_slope_*M_PI/180;
for (int i = 0; i < 32; i++)
{
theta = (-31.0/3 + (4.0/3)*i)*180/M_PI;
theta = (-31.0/3 + (4.0/3)*i)*M_PI/180;
radius_table_[i] = fabs(sensor_height_*(1.0/(tan(theta)+tan(b)) - 1.0/(tan(a+theta)+tan(b))));
}
break;
Expand All @@ -163,7 +163,7 @@ void GroundFilter::InitRadiusTable(int in_model)
b = max_slope_*M_PI/180;
for (int i = 0; i < 16; i++)
{
theta = (-30.0/2 + (2.0)*i)*180/M_PI;
theta = (-30.0/2 + (2.0)*i)*M_PI/180;
radius_table_[i] = fabs(sensor_height_*(1.0/(tan(theta)+tan(b)) - 1.0/(tan(a+theta)+tan(b))));
}
break;
Expand Down