jamming.h 905 B

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