Skip to content

Conversation

rishabsingh3003
Copy link
Contributor

@rishabsingh3003 rishabsingh3003 commented May 12, 2025

This adds a serial driver for LightWare GRF series rangefindes: https://lightwarelidar.com/shop/grf-250/?

@rishabsingh3003 rishabsingh3003 changed the title AP_RangeFinder: Add GRF250 serial driver AP_RangeFinder: Add GRF250/GRF500 serial driver Jun 25, 2025
@rishabsingh3003 rishabsingh3003 marked this pull request as ready for review June 25, 2025 19:32
Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review only, after I discovered we've already got this protocol implemented. Code re-use is good - we don't have vast amounts of flash at our disposal.

We should be able to re-use the entirety of AP_Proximity_LightWareSerial here, at the very least. AP_Proximity_LightWareSF45B::process_replies with a little bit of work, too.

The sensor configuration sequence looks rather required, but would definitely benefit from using base class methods from AP_Proximity_LightwareSerial

Our simulator for the SF45B is one of our better ones; factoring it to create a simulator for this device would be a good idea.

@rishabsingh3003
Copy link
Contributor Author

@peterbarker I have shifted the AP_Proximity_LightwareSerial out of AP_Proximity, hope that is an acceptable solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants