]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/intellibox.cpp
Add telemetry framework for drivers
[r2c2.git] / source / libr2c2 / intellibox.cpp
index 4c8f2ac783b1e6fbf73bdff9aa73d2f2b1a73e2c..c2e5d75af7fefd6eea28d927c55e700d9c7b5da4 100644 (file)
@@ -1,6 +1,7 @@
 #include <fcntl.h>
 #include <termios.h>
 #include <sys/poll.h>
+#include <msp/core/maputils.h>
 #include <msp/io/print.h>
 #include <msp/time/units.h>
 #include <msp/time/utils.h>
@@ -318,6 +319,11 @@ bool Intellibox::get_sensor(unsigned addr) const
        return false;
 }
 
+float Intellibox::get_telemetry_value(const string &name) const
+{
+       throw key_error(name);
+}
+
 void Intellibox::tick()
 {
        const Time::TimeStamp t = Time::now();