-
Notifications
You must be signed in to change notification settings - Fork 2
/
Voltage.h
38 lines (34 loc) · 1.19 KB
/
Voltage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Voltage.h
!*******************************************************************************
!* Description: Provides the functionality for voltage sensors.
!*
!* Known Bugs: Equation for voltage not implemented
!*
!*
!* DATE COMMENTS AUTHOR
!*=============================================================================
!* 26JAN16 Initial Delivery, have not tested T. von Friesen
!* everything yet
!*
!* 01FEB16 Compiled and debugged, everything T. von Friesen
!* checks out, need to test equation
!* accuracy with live data.
!*
!*****************************************************************************/
/* INCLUDES
******************************************************************************/
#pragma once
#include "Sensor.h"
/* CLASS DEFINITION
******************************************************************************/
class Voltage : public Sensor
{
private:
//Intentionally left blank
public:
//Constructor
Voltage(int pin);
/* Reads the analog value on the initialized pin, applies a conversion
equation, and stores that result into lastReadValue */
void read(void);
};