diff options
Diffstat (limited to 'src/ipa/raspberrypi/controller/rpi/lux.hpp')
-rw-r--r-- | src/ipa/raspberrypi/controller/rpi/lux.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipa/raspberrypi/controller/rpi/lux.hpp b/src/ipa/raspberrypi/controller/rpi/lux.hpp index 7b6c7258..3ebd35d1 100644 --- a/src/ipa/raspberrypi/controller/rpi/lux.hpp +++ b/src/ipa/raspberrypi/controller/rpi/lux.hpp @@ -6,9 +6,10 @@ */ #pragma once -#include <atomic> #include <mutex> +#include <libcamera/base/utils.h> + #include "../lux_status.h" #include "../algorithm.hpp" @@ -29,12 +30,12 @@ public: private: // These values define the conditions of the reference image, against // which we compare the new image. - double reference_shutter_speed_; // in micro-seconds + libcamera::utils::Duration reference_shutter_speed_; double reference_gain_; double reference_aperture_; // units of 1/f double reference_Y_; // out of 65536 double reference_lux_; - std::atomic<double> current_aperture_; + double current_aperture_; LuxStatus status_; std::mutex mutex_; }; |