mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 10:56:34 +00:00
db2652d979
Added functionality to capture camera frame from RTSP stream. Refactored code. Fixed some minor issues.
19 lines
313 B
C++
19 lines
313 B
C++
#pragma once
|
|
|
|
#include <QByteArray>
|
|
#include <QSerialPort>
|
|
|
|
class SerialPort {
|
|
public:
|
|
SerialPort(const QString& portName);
|
|
~SerialPort();
|
|
|
|
bool openPort();
|
|
void closePort();
|
|
void sendCommand(const QByteArray& command);
|
|
QByteArray readResponse();
|
|
|
|
private:
|
|
QSerialPort mSerialPort;
|
|
};
|