-
Notifications
You must be signed in to change notification settings - Fork 19.5k
AP_RangeFinder: Add GRF250/GRF500 serial driver #30043
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
base: master
Are you sure you want to change the base?
AP_RangeFinder: Add GRF250/GRF500 serial driver #30043
Conversation
04a3a15
to
bde8775
Compare
bde8775
to
b862566
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.
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.
b862566
to
aef8a77
Compare
@peterbarker I have shifted the AP_Proximity_LightwareSerial out of AP_Proximity, hope that is an acceptable solution |
This adds a serial driver for LightWare GRF series rangefindes: https://lightwarelidar.com/shop/grf-250/?