-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
ObstacleMath: move repeated/static code in SF45 & CollisionPrevention to ObstacleMath library #24277
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7f5a6e1
to
2164a48
Compare
Base automatically changed from
pr-collision_prevention_position_lock
to
main
February 3, 2025 16:17
a555d94
to
cc5cccf
Compare
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 80 byte (0 %)]
px4_fmu-v6x [Total VM Diff: 96 byte (0 %)]
Updated: 2025-02-07T10:10:28 |
dbde455
to
fb8ae8e
Compare
sfuhrer
reviewed
Feb 7, 2025
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.
Only some details, looks clean!
src/drivers/distance_sensor/lightware_sf45_serial/lightware_sf45_serial.cpp
Outdated
Show resolved
Hide resolved
…rity. Obstacle map is created in sensor frame, but scaling for vehicle orientation is done in vehicle FRD frame.
2b291c7
to
a2c8678
Compare
sfuhrer
approved these changes
Feb 7, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No functional change, only refactoring.
Solved Problem
Some repeated code across
CollisionPrevention.cpp
andlightware_sf45_serial.cpp
.Solution
Move some repeated/static code to ObstacleMath library.
Part of this was already done in the following pr's:
Test coverage
Context