-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead.h
45 lines (29 loc) · 1.05 KB
/
head.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
#ifndef HEAD_H
#define HEAD_H
#include "master.h"
#include "Arduino.h"
/************** Start Head Class Definition ************/
class Head : public Master
{
/************** Start Public Functions ************/
public:
Head (); // constructor
// initialize pins for the head movement system
void pins (int channelPin, int relayForwardRotation, int relayBackwardRotation);
// main function to move the head up and down
void checkHeadRotation();
/************** End Public Functions ************/
/************** Start Private Functions ************/
private:
// class members
int _relayForwardRotation; // up-Down relay
int _relayBackwardRotation; // On-Off relay
int _channelPin;
// testing function
void _testInputValues(int relayForwardRotation);
// checks for input from the user
void _checkRotationConditionals(int relayForwardRotation);
/************** End Private Functions ************/
};
/************** End Head Class Definition ************/
#endif