-
Notifications
You must be signed in to change notification settings - Fork 12
/
actions.h
75 lines (63 loc) · 1.64 KB
/
actions.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// DO NOT alter this file
//
#define FUNCTION_NULL -1 // do nothing
#define FUNCTION_0 0 // lights
#define FUNCTION_1 1 // bell
#define FUNCTION_2 2 // horn
#define FUNCTION_3 3
#define FUNCTION_4 4
#define FUNCTION_5 5
#define FUNCTION_6 6
#define FUNCTION_7 7
#define FUNCTION_8 8
#define FUNCTION_9 9
#define FUNCTION_10 10
#define FUNCTION_11 11
#define FUNCTION_12 12
#define FUNCTION_13 13
#define FUNCTION_14 14
#define FUNCTION_15 15
#define FUNCTION_16 16
#define FUNCTION_17 17
#define FUNCTION_18 18
#define FUNCTION_19 19
#define FUNCTION_20 20
#define FUNCTION_21 21
#define FUNCTION_22 22
#define FUNCTION_23 23
#define FUNCTION_24 24
#define FUNCTION_25 25
#define FUNCTION_26 26
#define FUNCTION_27 27
#define FUNCTION_28 28
#define FUNCTION_29 29
#define FUNCTION_30 30
#define FUNCTION_31 31
#define SPEED_STOP 30
#define SPEED_UP 31
#define SPEED_DOWN 32
#define SPEED_UP_FAST 33
#define SPEED_DOWN_FAST 34
#define E_STOP 35
#define SPEED_MULTIPLIER 36
#define DIRECTION_TOGGLE 50
#define DIRECTION_FORWARD 51
#define DIRECTION_REVERSE 52
#define SPEED_STOP_THEN_TOGGLE_DIRECTION 54 // stops the loco if moving. Toggles the direction if stationary.
#define E_STOP_CURRENT_LOCO 55
#define MAX_THROTTLE_INCREASE 56
#define MAX_THROTTLE_DECREASE 57
// actions that are not related to a loco need to be above 500
#define POWER_TOGGLE 501
#define POWER_ON 502
#define POWER_OFF 503
#define SHOW_HIDE_BATTERY 504 // the battery test must be enabled for this to have any effect
#define NEXT_THROTTLE 510
#define CUSTOM_1 521
#define CUSTOM_2 522
#define CUSTOM_3 523
#define CUSTOM_4 524
#define CUSTOM_5 525
#define CUSTOM_6 526
#define CUSTOM_7 527