Wyatt  1.0.1
EncoderSensor.h
1 //
2 // Created by Tucker Haydon on 4/26/17.
3 //
4 
5 #pragma once
6 
7 #include "messages/IMessage.h"
8 #include "ISensor.h"
9 #include "exceptions/MismatchedMessageException.h"
10 #include <typeinfo>
11 #include "messages/EncoderMessage.h"
12 
17 class EncoderSensor: public ISensor {
18 
19 public:
23  EncoderSensor();
24 
29 
36  void updateSensor(IMessage* message);
37 
42  double getRPM();
43 
44 private:
48  double RPM;
49 };
void updateSensor(IMessage *message)
Definition: ISensor.h:7