platform.h 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef PLATFORM_H
  2. #define PLATFORM_H
  3. #include <QObject>
  4. #include <QTimerEvent>
  5. #include <QDebug>
  6. #include "coordTrans/XYZ2ELL.h"
  7. #include "coordTrans/blh2xyz.h"
  8. class Platform : public QObject
  9. {
  10. Q_OBJECT
  11. public:
  12. uint32_t ID;
  13. QString Name;
  14. double *x;
  15. double *y;
  16. double *z;
  17. double vx;
  18. double vy;
  19. double vz;
  20. double ax;
  21. double ay;
  22. double az;
  23. double lon;
  24. double lat;
  25. double h;
  26. int TimerUpdatePos;
  27. explicit Platform(QObject *parent = nullptr, uint32_t ID = 0,
  28. QString Name = QString::fromLocal8Bit("未知平台"),
  29. double initlon = 120, double initlat = 20, double inith = 8000,
  30. double vx = 0, double vy = 0, double vz = 0,
  31. double ax = 0, double ay = 0, double az = 0);
  32. void UpdateAcc(double ax, double ay, double az);
  33. void UpdateVel(double vx, double vy, double vz);
  34. void timerEvent(QTimerEvent *event);
  35. signals:
  36. };
  37. #endif // PLATFORM_H