-
Notifications
You must be signed in to change notification settings - Fork 0
/
flags.h
60 lines (51 loc) · 1.46 KB
/
flags.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
YAAB - Yet Another Autococker Board
Arduino based autococker board developed around the platform and ATMEL AVR
chips
Copyright (C) 2012 Dan Silk
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/// Flags for user profiles
enum ActionTypes
{
AT_Training = 0x1,
AT_Pump = 0x2,
AT_Semi = 0x4,
AT_Auto = 0x8,
};
enum TriggerActions
{
TA_FireOnPress = 0x1,
TA_FireOnRelease = 0x2,
};
/// Flags used in a marker cycle
enum CycleFlags
{
CF_Use_Eyes = 0x01,
CF_Trigger_Pressed = 0x02,
CF_Debounce_Charge = 0x04,
CF_Reserved = 0x08,
};
/// The state of a marker cycle
enum CycleStates
{
CS_Ready_To_Fire = 0,
CS_Sear_Firing = 1,
CS_Breech_Opening = 2,
CS_Breech_Closing = 3
};
/// State of the marker eyes
enum EyeStates
{
ES_Empty_Seen = 0x1,
ES_Ball_Seen = 0x2,
};