17#ifndef CANBUSMANAGER_HPP
18#define CANBUSMANAGER_HPP
32 QObject *parent =
nullptr);
Definition of the IMCP2515Controller class.
void rpmUpdated(int newRpm)
Signal emitted when the RPM is updated.
QThread * getThread() const
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.