![]() |
Kart
1.1
BTS SN-IR La Salle Avignon 2018
|
00001 #ifndef IHMKART_H 00002 #define IHMKART_H 00003 00010 #include <QMainWindow> 00011 #include <qwt_plot_curve.h> 00012 #include "telemetrie.h" 00013 00014 class Communication; 00015 00016 namespace Ui { 00017 class IHMKart; 00018 } 00019 00024 typedef struct 00025 { 00026 QVector<double> x; 00027 QVector<double> y; 00028 } Courbe; 00029 00040 class IHMKart : public QMainWindow 00041 { 00042 Q_OBJECT 00043 00044 public: 00045 explicit IHMKart(QWidget *parent = 0); 00046 ~IHMKart(); 00047 00048 private: 00049 Ui::IHMKart *ui; 00050 Communication* communication; 00051 Telemetrie telemetrie; 00052 QString idKart; 00053 QString idOperateur; 00054 QwtPlotCurve *courbeVitesse; 00055 QwtPlotCurve *courbeTension; 00056 QwtPlotCurve *courbeCourant; 00057 QwtPlotCurve *courbeTemperature; 00058 QwtPlotCurve *courbeChargeBatterie; 00059 Courbe vitesse; 00060 Courbe tension; 00061 Courbe courant; 00062 Courbe temperature; 00063 Courbe chargeBatterie; 00064 00065 00066 00067 00068 00069 void chargerIDKarts(); 00070 void chargerIDOperateurs(); 00071 void initialiserIHM(); 00072 void initialiserQWT(); 00073 void afficherDonneesTelemetrie(Echantillon echantillon); 00074 void afficherGraphiques(Echantillon echantillon); 00075 void reinitialiserGraphiques(); 00076 00077 public slots: 00084 void rafraichir(Echantillon echantillon); 00085 00091 void demarrerEssai(); 00092 00098 void arreterEssai(); 00099 }; 00100 00101 #endif // IHMKART_H