Specification-defined illuminance regulator
This module implements the illuminance regulator defined in the Bluetooth® mesh model specification.
The regulator operates in a compile time configurable update interval between 10 and 100 ms.
The interval can be configured through the
For each step, the regulator:
Calculates the integral of the error since the last step.
Adds the integral to an internal sum.
Multiplies this sum by an integral coefficient.
Summarizes the sum with the raw difference multiplied by a proportional coefficient.
The error, the regulator coefficients, and the internal sum, are represented as 32-bit floating point values. The resulting output level is represented as an unsigned 16-bit integer.
To reduce noise, the regulator has a configurable accuracy property which allows it to ignore errors smaller than the configured accuracy (represented as a percentage of the light level).
- group bt_mesh_light_ctrl_reg_spec
Specification-defined illuminance regulator.
- #include <light_ctrl_reg_spec.h>
Specification-defined illuminance regulator context.
- struct bt_mesh_light_ctrl_reg_spec