Wyatt  1.0.1
EncoderSensor.cpp
1 //
2 // Created by Tucker Haydon on 4/26/17.
3 //
4 
5 #include "sensors/EncoderSensor.h"
6 
8  // Nothing
9 }
10 
12  // Nothing
13 }
14 
16 
17  if(typeid(*message) != typeid(EncoderMessage)) {
18  throw MismatchedMessageException(message);
19  }
20 
21  // Cast the message
22  EncoderMessage* msg = (EncoderMessage*)message;
23 
24  this->RPM = msg->getData();
25 }
26 
28  return this->RPM;
29 }
void updateSensor(IMessage *message)