Wyatt
1.0.1
Main Page
Classes
Files
File List
include
sensors
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
28
~EncoderSensor
();
29
36
void
updateSensor
(
IMessage
* message);
37
42
double
getRPM
();
43
44
private
:
48
double
RPM;
49
};
IMessage
Definition:
IMessage.h:10
EncoderSensor::EncoderSensor
EncoderSensor()
Definition:
EncoderSensor.cpp:7
EncoderSensor::updateSensor
void updateSensor(IMessage *message)
Definition:
EncoderSensor.cpp:15
ISensor
Definition:
ISensor.h:7
EncoderSensor::getRPM
double getRPM()
Definition:
EncoderSensor.cpp:27
EncoderSensor::~EncoderSensor
~EncoderSensor()
Definition:
EncoderSensor.cpp:11
EncoderSensor
Definition:
EncoderSensor.h:17
Generated by
1.8.11