forked from BlitzGLEP1326/vehicle-can-daq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcandataobject.h
36 lines (33 loc) · 1.07 KB
/
candataobject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef CANDATAOBJECT_H
#define CANDATAOBJECT_H
#include <QByteArray>
class CanDataObject
{
public:
CanDataObject();
CanDataObject(const unsigned short&, const unsigned short&, const unsigned short&, const short&, const short&, const short&, const short&);
CanDataObject(const CanDataObject&);
unsigned short getEngineRpm() const;
unsigned short getVehicleSpeed() const;
unsigned short getFuelLevel() const;
short getCoolantTempC() const;
short getCoolantTempF() const;
short getOilTempC() const;
short getOilTempF() const;
void setEngineRpm(const unsigned short&);
void setVehicleSpeed(const unsigned short&);
void setFuelLevel(const unsigned short&);
void setCoolantTempC(const short&);
void setCoolantTempF(const short&);
void setOilTempC(const short&);
void setOilTempF(const short&);
private:
unsigned short engine_rpm_;
unsigned short vehicle_speed_;
unsigned short fuel_level_;
short coolant_temp_c_;
short coolant_temp_f_;
short oil_temp_c_;
short oil_temp_f_;
};
#endif // CANDATAOBJECT_H