upkie 9.0.0
Open-source wheeled biped robots
|
Sensor for CPU temperature readings. More...
#include <CpuTemperature.h>
Public Member Functions | |
CpuTemperature (const char *temp_path="/sys/class/thermal/thermal_zone0/temp") | |
Open file to query temperature from the kernel. More... | |
~CpuTemperature () override | |
Close file. | |
std::string | prefix () const noexcept final |
Prefix of output in the observation dictionary. More... | |
void | write (Dictionary &observation) final |
Write output to a dictionary. More... | |
bool | is_disabled () const |
Check if temperature observations are disabled. | |
Sensor for CPU temperature readings.