15 std::shared_ptr<option> tl_toggle);
30 void notify(
float temperature);
52 mon->add_observer([&](
float)
54 for (auto && cb : _user_callbacks)
55 cb->on_calibration_change(rs2_calibration_status::RS2_CALIBRATION_SUCCESSFUL);
62 _user_callbacks.insert(callback);
unsigned int _poll_intervals_ms
void polling(dispatcher::cancellable_timer cancellable_timer)
float _thermal_threshold_deg
std::set< calibration_change_callback_ptr > _user_callbacks
ds5_thermal_monitor & operator=(const ds5_thermal_monitor &)=delete
void notify(float temperature)
ds5_thermal_tracking(std::shared_ptr< ds5_thermal_monitor > monitor)
std::weak_ptr< ds5_thermal_monitor > _monitor
ds5_thermal_monitor(std::shared_ptr< option > temp_option, std::shared_ptr< option > tl_toggle)
std::weak_ptr< option > _temperature_sensor
std::weak_ptr< option > _tl_activation
std::vector< std::function< void(float)> > _thermal_changes_callbacks
void add_observer(std::function< void(float)> callback)
void register_calibration_change_callback(calibration_change_callback_ptr callback) override
std::shared_ptr< rs2_calibration_change_callback > calibration_change_callback_ptr