Definition of the CanBusManager class.
Definition of the MCP2515Controller class.
void rpmUpdated(int newRpm)
Signal emitted when the RPM is updated.
void speedUpdated(float newSpeed)
Signal emitted when the speed is updated.
void connectSignals()
Method to connect signals.
bool ownsMCP2515Controller
Flag to indicate if the MCP2515 controller is owned by the CanBusManager.
QThread * m_thread
Pointer to the QThread object.
bool initialize()
Initializes the CanBusManager.
~CanBusManager()
Destroy the CanBusManager::CanBusManager object.
IMCP2515Controller * m_controller
Pointer to the IMCP2515Controller object.
CanBusManager(const std::string &spi_device, QObject *parent=nullptr)
Construct a new CanBusManager::CanBusManager object.
Interface for the MCP2515 CAN controller. QObject.
void rpmUpdated(int newRpm)
Signal emitted when the RPM is updated.
virtual void processReading()=0
void speedUpdated(float newSpeed)
Signal emitted when the speed is updated.
Class that controls the MCP2515 CAN controller. IMCP2515Controller.