CP控制V1.0

This commit is contained in:
2025-06-12 15:28:37 +08:00
commit 566d30b5f8
15 changed files with 1899 additions and 0 deletions

26
Main/Send.h Normal file
View File

@ -0,0 +1,26 @@
#ifndef CPCTRL_SEND_H
#define CPCTRL_SEND_H
#include "ConfigParser.h"
#include "SerialPort.h"
class Send {
public:
Send();
size_t sendto(const std::string &data);
size_t sendto(const std::vector<uint8_t> &data);
bool isRunning() const;
private:
std::unique_ptr<UDPReceiver> UdpReceiver{};
std::unique_ptr<UDPSender> UdpSender{};
std::unique_ptr<SerialPort> Serial{};
bool isUdp{};
bool isHH{};
bool running_{};
};
#endif //CPCTRL_SEND_H