-#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>
namespace R2C2 {
-Intellibox::Intellibox(const string &dev):
- serial(dev),
+Intellibox::Intellibox(const Options &opts):
+ serial(opts.get<string>(string(), "ttyUSB0")),
power(false),
halted(false),
update_sensors(false),
return false;
}
+float Intellibox::get_telemetry_value(const string &name) const
+{
+ throw key_error(name);
+}
+
void Intellibox::tick()
{
const Time::TimeStamp t = Time::now();