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:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user