upkie 9.0.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches
CpuTemperature Class Reference

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.
 

Detailed Description

Sensor for CPU temperature readings.

Note
This sensor only works on Linux.

The documentation for this class was generated from the following files: