51 const std::string
id =
"", uint32_t
period = 0,
63 std::chrono::nanoseconds{
64 static_cast<int64_t>(
sToNs(1) / frequency.value())},
71 const std::string
id, std::chrono::nanoseconds
period,
This file includes all the types the logdecoder script will decode.
constexpr long long sToNs(long long s)
Convert seconds to nanoseconds.
Sensors information struct needed by the SensorManager.
std::chrono::nanoseconds period
SensorInfo & operator=(const SensorInfo &info)
SensorInfo(const std::string id, Units::Frequency::Hertz frequency, std::function< void()> callback=[]() {}, bool isEnabled=true)
SensorInfo(const std::string id="", uint32_t period=0, std::function< void()> callback=[]() {}, bool isEnabled=true)
bool operator==(const SensorInfo &info) const
std::function< void()> callback
SensorInfo(const std::string id, std::chrono::nanoseconds period, std::function< void()> callback=[]() {}, bool isEnabled=true)