-
Notifications
You must be signed in to change notification settings - Fork 13.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
Sensors startup reorder and cleanups #12409
Comments
Hi @BazookaJoe1900, this is a good idea and probably something we could continue to cleanup incrementally. The larger reason I haven't done more already is that we really want to get to a "board manifest" that lays these things out statically. Something like this per board in yaml (TBD). The required sensors per board are layed out and this would both include the driver in a particular build, handle init, and perhaps most importantly report as a critical error if a required sensor is missing. |
@dagar Do you want mw to do just the cleanup I suggested above? |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
closing the issue. |
The current order of sensors start up:
-- running some sensors that seems to be "common"
--- ms5611 (on external bus)
--- ms5611 (on internal bus)
--- Blacksheep telemetry
-- running optional sensors that are enabled by parameters like airspeed, batt_smbus, ll40ls and so on
-- Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)
-- starting the sensors module
-- starting per board sensors list
I think that there are few errors on this method
Do you agree?
Update:
the rc.board_sensors is called before rc.sensors so there is no need to move the delay (point 4)
The text was updated successfully, but these errors were encountered: