aboutsummaryrefslogtreecommitdiff
path: root/sensor_als.cpp
blob: 399f2a119f5887ddefd3bb61e04ff7e36823384b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "sensor_als.hpp"
void SensorALS::enable_scan_elements()
{
	enable_scan_element("both");
}
void SensorALS::update_values()
{
	value=std::any_cast<int>(dict["in_intensity_both_value"])*
	std::any_cast<float>(dict["in_intensity_scale"]);
}
float SensorALS::get_value(){return value;}