![]() |
Kart
1.1
BTS SN-IR La Salle Avignon 2018
|
00001 #ifndef TELEMETRIE_H 00002 #define TELEMETRIE_H 00003 00010 #include <QVector> 00011 #include <QDateTime> 00012 00017 typedef struct 00018 { 00019 QString idKart; 00020 QDateTime horodatage; 00021 double temperatureMoteur; // en degré Celcius 00022 double tensionBatterie; // en Volt 00023 double courantBatterie; // en Ampere 00024 int vitesse; // en km/h 00025 int chargeBatterie; // en pourcentage 00026 } Echantillon; 00027 00033 class Telemetrie 00034 { 00035 private: 00036 QVector<Echantillon> echantillons; 00038 public: 00039 Telemetrie(); 00040 00047 QVector<Echantillon> getEchantillons(); 00048 00054 void supprimerEchantillons(); 00055 00062 void ajouterEchantillon(Echantillon echantillon); 00063 00064 }; 00065 00066 #endif // TELEMETRIE_H