Skip to content

Conversation

bskdany
Copy link

@bskdany bskdany commented Jul 5, 2025

Summary

The Kconfig option for the ODR was added for on the fly configuration of the system

Impact

You can now change the ODR on the nau7802

Testing


config SENSORS_NAU7802_ODR
int "NAU7802 ODR"
default 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a range keyword to help limit to 0-7

priv->lower.type = SENSOR_TYPE_FORCE;
priv->enabled = false;
priv->odr = NAU7802_ODR_10HZ; /* 10Hz (0.1s) default ODR */
priv->odr = CONFIG_SENSORS_NAU7802_ODR;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the sensor boots, is it's default 10Hz? Because if so, you'll need to make sure that a user ODR of a different value is set on the chip, not just stored in the struct.

Also, make this configurable via the uORB interface for setting sampling frequency.

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.

2 participants