-
Notifications
You must be signed in to change notification settings - Fork 0
/
fire.h
45 lines (30 loc) · 1015 Bytes
/
fire.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
39
40
41
42
43
44
45
#ifndef FIRE_H
#define FIRE_H
#include "master.h"
#include "Arduino.h"
/************** Start Fire Class Definition ************/
class Fire : public Master
{
/************** Start Public Functions ************/
public:
Fire (); //Constructor
// initialize pins for the fire system
void pins (int glowPlug, int oilSpray, int relayGlowPlug, int relayOilSpray);
// main function for the fire system
void checkFireSwitch();
/************** End Public Functions ************/
/************** Start Private Functions ************/
private:
// class members
int _glowPlug;
int _oilSpray;
int _relayGlowPlug;
int _relayOilSpray;
// testing function
void _testInputValues(int glow, int oil );
// checks for input from the user
void _checkFireSwitchConditionals(int glowPlugRadioValue, int oilSprayRadioValue);
/************** End Private Functions ************/
};
/************** End Fire Class Definition ************/
#endif