Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
IMCP2515Controller.hpp
Go to the documentation of this file.
1
16
17#ifndef IMCP2515CONTROLLER_HPP
18#define IMCP2515CONTROLLER_HPP
19
20#include <QObject>
21
26class IMCP2515Controller : public QObject {
27 Q_OBJECT
28public:
29 virtual ~IMCP2515Controller() = default;
30 virtual bool init() = 0;
31 virtual void processReading() = 0;
32 virtual void stopReading() = 0;
33 virtual bool isStopReadingFlagSet() const = 0;
34
35signals:
40 void speedUpdated(float newSpeed);
41
46 void rpmUpdated(int newRpm);
47};
48
49#endif // IMCP2515CONTROLLER_HPP
Interface for the MCP2515 CAN controller. QObject.
virtual bool init()=0
virtual void stopReading()=0
void rpmUpdated(int newRpm)
Signal emitted when the RPM is updated.
virtual bool isStopReadingFlagSet() const =0
virtual ~IMCP2515Controller()=default
virtual void processReading()=0
void speedUpdated(float newSpeed)
Signal emitted when the speed is updated.