aboutsummaryrefslogtreecommitdiff
path: root/sensor_als.cpp
blob: 88c3efca1b8b4166dcb9e5223b6565bf6eabd2f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chris Xiong 2018
//3-Clause BSD License
#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;}