Skyward boardcore
|
Sensors information struct needed by the SensorManager. More...
#include <SensorInfo.h>
Public Member Functions | |
SensorInfo (const std::string id="", uint32_t period=0, std::function< void()> callback=[]() {}, bool isEnabled=true) | |
SensorInfo (const std::string id, Units::Frequency::Hertz frequency, std::function< void()> callback=[]() {}, bool isEnabled=true) | |
SensorInfo (const std::string id, std::chrono::nanoseconds period, std::function< void()> callback=[]() {}, bool isEnabled=true) | |
SensorInfo & | operator= (const SensorInfo &info) |
bool | operator== (const SensorInfo &info) const |
Public Attributes | |
std::string | id |
std::chrono::nanoseconds | period |
std::function< void()> | callback |
bool | isEnabled |
bool | isInitialized |
Sensors information struct needed by the SensorManager.
This structure contains the sampling period of a sensor, the function to be called after the sampling (callback) and one boolean indicating if the sensor has to be sampled (is enabled).
Definition at line 41 of file SensorInfo.h.
|
inline |
Definition at line 49 of file SensorInfo.h.
|
inline |
Definition at line 58 of file SensorInfo.h.
|
inline |
Definition at line 69 of file SensorInfo.h.
|
inline |
Definition at line 78 of file SensorInfo.h.
|
inline |
Definition at line 89 of file SensorInfo.h.
std::function<void()> Boardcore::SensorInfo::callback |
Definition at line 45 of file SensorInfo.h.
std::string Boardcore::SensorInfo::id |
Definition at line 43 of file SensorInfo.h.
bool Boardcore::SensorInfo::isEnabled |
Definition at line 46 of file SensorInfo.h.
bool Boardcore::SensorInfo::isInitialized |
Definition at line 47 of file SensorInfo.h.
std::chrono::nanoseconds Boardcore::SensorInfo::period |
Definition at line 44 of file SensorInfo.h.