Skip to content
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

AP_RangeFinder: populate last_reading_ms in the backend for some sensors #27620

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rishabsingh3003
Copy link
Contributor

This was noticed when trying to use Lightware LW20 I2C with AP_Periph. The Rangefinder support inside AP_Periph checks for the backends last update time so that we don't send duplicates:

https://github.com/ArduPilot/ardupilot/blob/master/Tools/AP_Periph/rangefinder.cpp#L67

I did a drive-through of all the other backend and it looks like only one other backend suffers from the issue.

This problem has been reported a few times in the past: https://discuss.ardupilot.org/t/ap-periph-not-working-with-lightwarei2c/95913

@rmackay9
Copy link
Contributor

@rishabsingh3003 this only affect AP_Periph or are we losing readings on regular vehicles as well?

@rubenp02
Copy link
Contributor

rubenp02 commented Feb 18, 2025

Is there a reason why this didn't end up getting merged?

Edit: Just tried this with an AP_Periph CAN Node L431 and an I2C Lightware SF000 and it didn't work. The RNGFND1_TYPE parameter just doesn't appear.

@rishabsingh3003
Copy link
Contributor Author

@rubenp02 RNGFND1_TYPE not showing up is likely a hwdef/firware build issue unrelated to this PR.

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

Successfully merging this pull request may close these issues.

3 participants