radar.h 971 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef RADAR_H
  2. #define RADAR_H
  3. #include <QObject>
  4. #include <QThread>
  5. #include "externalsim.h"
  6. #include "../wsclient/client.h"
  7. struct Style
  8. {
  9. double fs;
  10. double fc;
  11. QString moduType;
  12. QString PRFMode;
  13. std::vector<double> PRFs;
  14. double PulseWidth;
  15. double BandWidth;
  16. };
  17. class Radar : public ExternalSim
  18. {
  19. Q_OBJECT
  20. public:
  21. int style;
  22. std::map<int, Style> RadarStyleList;
  23. client *radarsim;
  24. QThread *radarsimthread;
  25. explicit Radar(QObject *parent = nullptr,
  26. uint32_t PlatformID = 0, uint32_t InstanceID = 0,
  27. bool SwitchMode = false,
  28. QString Name = QString::fromLocal8Bit("未知模拟器"),
  29. QUrl SimulationUrl = QUrl(QStringLiteral("ws://localhost:1235")),
  30. int style = 101);
  31. void StyleInit();
  32. signals:
  33. void SigSendStyleToSim(QString newstyle);
  34. public slots:
  35. void StyleUpdate(int newstyle);
  36. };
  37. #endif // RADAR_H