mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 14:22:11 +08:00
484eed0acf
* refactor livestream into devicestream * add panda stream * unused * whitespace * move logging to base class * add cmdline args * Update selfdrive/boardd/boardd.cc --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: 2a981f553162ff41dd50ed6921b90ac512efa3d2
18 lines
403 B
C++
18 lines
403 B
C++
#pragma once
|
|
|
|
#include "tools/cabana/streams/livestream.h"
|
|
|
|
class DeviceStream : public LiveStream {
|
|
Q_OBJECT
|
|
public:
|
|
DeviceStream(QObject *parent, QString address = {});
|
|
|
|
inline QString routeName() const override {
|
|
return QString("Live Streaming From %1").arg(zmq_address.isEmpty() ? "127.0.0.1" : zmq_address);
|
|
}
|
|
|
|
protected:
|
|
void streamThread() override;
|
|
const QString zmq_address;
|
|
};
|