commaai / openpilot

openpilot is an operating system for robotics. Currently, it upgrades the driver assistance system in 275+ supported cars.
https://comma.ai/openpilot
MIT License
49.65k stars 9.03k forks source link

Merge sensord and qualcomm sensor daemon #2215

Closed adeebshihadeh closed 3 years ago

adeebshihadeh commented 4 years ago

Currently, sensord and sensors.qcom use about 10% of a core. sensord should be able to work without the qualcomm daemon and without going through android.

adeebshihadeh commented 4 years ago

@deanlee are you interested in looking into this one?

deanlee commented 4 years ago

I'll try.is there any information or tips I need to know?

adeebshihadeh commented 4 years ago

This is only for sensors_qcom.cc. Here's an overview of the android sensor stack - https://source.android.com/devices/sensors/sensor-stack. I believe all the sensor drivers should be here https://github.com/commaai/android_kernel_comma_msm8996/tree/master/drivers/input/misc. Should be a fun project :)

ihsakashi commented 4 years ago

https://source.codeaurora.org/quic/la/platform/hardware/qcom/sensors/. This is Qualcomm's sensor HAL implementation. I do not know if these go all the way back to marshmallow but they should help

deanlee commented 4 years ago

@ihsakashi thank you! I think we're going to bypass the entire android sensor framework .but this link is still helpful to me.

ihsakashi commented 4 years ago

Np, bypassing is going to be better

deanlee commented 3 years ago

@adeebshihadeh Is this sensor list correct? LSM6DS3 AK09911 LTR579 Are you sure all the drivers are in here?: https://github.com/commaai/android_kernel_comma_msm8996/tree/master/drivers/input/misc.