-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
drivers/sensor: add new sensot type to align android sensor type #15610
Conversation
007ad49
to
51aba1b
Compare
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. While it provides a summary of the changes, it lacks crucial details. Missing Information:
The PR author needs to provide substantially more detail to meet the requirements. They need to clearly explain the motivation, thoroughly analyze the impact, and provide concrete evidence of testing. |
@Donny9 Is there any advantage in compatibility with Android here? If so, maybe it's worth adding a note in |
@raiden00pl Good idea, Android has accumulated valuable experience and set fine examples, and we can draw closer to it in the direction of smart devices. |
new sensor type: SENSOR_TEMPERATURE SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED SENSOR_TYPE_GYROSCOPE_UNCALIBRATED SENSOR_TYPE_MAGNETIC_FILED_UNCALIBRATED refs: https://cs.android.com/android/_/android/platform/hardware/libhardware/+/ 0e67aa0caee9500b61b9c1c8b6e5cab18301364c:include_all/hardware/sensors-base.h Signed-off-by: dongjiuzhu1 <[email protected]>
@@ -875,7 +875,6 @@ int sht4x_register(FAR struct i2c_master_s *i2c, int devno, uint8_t addr) | |||
|
|||
priv->hum.sensor_lower.ops = &g_sensor_ops; | |||
priv->hum.sensor_lower.type = SENSOR_TYPE_RELATIVE_HUMIDITY; | |||
priv->hum.sensor_lower.uncalibrated = false; |
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.
It would be good to update the recent documentation on UORB to mention the removal of the uncalibrated
member.
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.
#15619 @linguini1 Done
Summary
new sensor type:
SENSOR_TEMPERATURE
SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED
SENSOR_TYPE_GYROSCOPE_UNCALIBRATED
SENSOR_TYPE_MAGNETIC_FILED_UNCALIBRATED
refs:
https://cs.android.com/android/_/android/platform/hardware/libhardware/+/0e67aa0caee9500b61b9c1c8b6e5cab18301364c:include_all/hardware/sensors-base.h
Impact
add new sensor type
Testing
local test