7 #include "hardwareinterface/IHardwareInterface.h" 8 #include "hardwareinterface/AdafruitPWMServoHat.h" 9 #include "messages/IMessage.h" 10 #include "messages/MotorMessage.h" 12 #include "exceptions/MismatchedMessageException.h" 45 std::list<IMessage*>*
read()
override {
46 return new std::list<IMessage*>;
51 int forwardPin, backwardPin;
57 void driveMotor(
int speed);
void write(IMessage *msg) override
MotorAdapter(AdafruitPWMServoHat *m_pwmHat, int forwardPin, int backwardPin)
std::list< IMessage * > * read() override