主权项 |
1. A method of compensating for sensor drift of a smoke sensor, comprising:
calculating a smoke level value based, in part, on a sensor value calculated based on readings obtained from the smoke sensor and a clear air offset value; and adjusting the clear air offset value in response to changes in dust accumulation within an enclosure of the smoke sensor such that an increase in accumulated dust causes an upward sensor drift and a decrease in accumulated dust causes a downward sensor drift, wherein the adjusting comprises:
using a first filter to calculate a reseed value based, in part, on the sensor value;using a second filter to calculate an adjusted clear air offset value based, in part, on the sensor value and the clear air offset value; andselectively setting the clear air offset value to one of the adjusted clear air offset value and the reseed value depending on whether a downward sensor drift is detected. |