16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 04:19:19 +02:00

zmq panel interface

This commit is contained in:
milek7
2020-03-29 21:54:57 +02:00
parent e8537a16bb
commit cefd741d04
8 changed files with 431 additions and 1 deletions

View File

@@ -51,6 +51,11 @@ driver_mode::drivermode_input::poll() {
uart->poll();
}
#endif
#ifdef WITH_ZMQ
if( zmq != nullptr ) {
zmq->poll();
}
#endif
/*
// TBD, TODO: wrap current command in object, include other input sources?
input::command = (
@@ -75,6 +80,11 @@ driver_mode::drivermode_input::init() {
uart = std::make_unique<uart_input>();
uart->init();
}
#endif
#ifdef WITH_ZMQ
if (!Global.zmq_address.empty()) {
zmq = std::make_unique<zmq_input>();
}
#endif
if (Global.motiontelemetry_conf.enable)
telemetry = std::make_unique<motiontelemetry>();