-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
ArduPilot Sensor Updates #3364
Merged
Merged
ArduPilot Sensor Updates #3364
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7120007
Add support for Distance Sensor in ArduPilot
rajat2004 ae9f726
Add support for Distance Sensor in ArduPilot Rover vehicle
rajat2004 cfb6bec
Fix style inconsistency, use unique_ptr in ArduPilot files
rajat2004 bc27569
[Unity] Update CMake to C++14 standard
rajat2004 8b91f1f
ArduCopterApi: Only send GPS data if sensor available
rajat2004 4b4f47a
ArduRoverApi: Only send GPS data if sensor available
rajat2004 21b2f77
Add ExternalController field to Lidar, Distance sensor settings
rajat2004 3dabbef
ArduCopterApi: Only send Lidar, Distance sensor data if ExternalContr…
rajat2004 b58233c
ArduRoverApi: Only send Lidar, Distance sensor data if ExternalContro…
rajat2004 d8bc783
Update docs with ExternalController info
rajat2004 d75f277
PX4: Send Distance sensor data only if external_controller is true
rajat2004 b71abea
ArduPilot: Fix GPS data encoding
rajat2004 8c5cbb0
merging docs changes
zimmy87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
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.
I think it would be safer to make these "dynamic_casts" instead of static casts. See https://docs.microsoft.com/en-us/cpp/cpp/static-cast-operator?view=msvc-160
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.
In fact, I think we need to sweep the code base for this and use dynamic cast in a lot of places. But this one is specifically a downcast from SensorBase* to DistanceSimple* and I'm surprised that even works as a static cast.
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.
Wasn't aware of this, thanks for the info! Yeah, I guess it worked since the object was actually of Derived type and base class had virtual methods. But makes sense to use
dynamic_cast
instead to be safe