-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new cluster data struct and converted lidar detection to have x, y co… #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
__DISTANCE_LIMIT = 50 | ||
__ANGLE_LIMIT = 170 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the limits
return False, None | ||
|
||
if abs(angle) > cls.__ANGLE_LIMIT: | ||
if distance == -1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why only negative 1? why not keep the old check of 0 <= distance <= limit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the lidar driver takes care of limit checking and returns -1 if it's an invalid read. should I keep checks in both files then?
modules/lidar_detection.py
Outdated
Angle is in degrees. | ||
distance is in metres. | ||
angle is in degrees. | ||
(x, y) are the coordinates of the LiDAR scan relative to the drone's position. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what kind of coords? (nes, lat long, etc.)
fa8f44d
to
6455838
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
modules/lidar_detection.py
Outdated
Distance is in meters. | ||
Angle is in degrees. | ||
distance is in metres. | ||
angle is in degrees. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the caps
return False, None | ||
|
||
if abs(angle) > cls.__ANGLE_LIMIT: | ||
if distance == -1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it just -1 instead of <0?
daddba5
to
fc56ee4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
fc56ee4
to
0152811
Compare
…ords instead of dist, angle