-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom_postgui.hal
More file actions
205 lines (193 loc) · 7.21 KB
/
custom_postgui.hal
File metadata and controls
205 lines (193 loc) · 7.21 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# Include your customized HAL commands here
# The commands in this file are run after the AXIS GUI (including PyVCP panel)
# starts
# This file will not be overwritten when you run stepconf again
# load the Gamepad Pro module
#loadusr -W hal_input -KRAL "Logitech Logitech Dual Action"
#loadusr -W hal_input -KRAL Logitech
# HAL config file automatically generated by Eagle-CAD hal-write.ulp
# (C) Martin Schoeneck.de 2008
# Mods Ed Nisley 2010
# Path: [/mnt/bulkdata/Project Files/eagle/projects/EMC2 HAL Configuration/]
# ProjectName: [Logitech Gamepad]
# File name: [/mnt/bulkdata/Project Files/eagle/projects/EMC2 HAL Configuration/Logitech Gamepad.hal]
####################################################
# Load realtime and userspace modules
#loadrt constant count=14
#loadrt and2 count=9
#loadrt flipflop count=4
#loadrt mux2 count=5
#loadrt mux4 count=1
#loadrt not count=8
#loadrt or2 count=9
#loadrt scale count=7
#loadrt toggle count=1
#loadrt wcomp count=6
####################################################
# Hook functions into threads
#addf toggle.0 servo-thread
#addf wcomp.1 servo-thread
#addf wcomp.2 servo-thread
#addf wcomp.3 servo-thread
#addf and2.0 servo-thread
#addf and2.4 servo-thread
#addf and2.3 servo-thread
#addf and2.2 servo-thread
#addf and2.1 servo-thread
#addf constant.6 servo-thread
#addf constant.5 servo-thread
#addf constant.4 servo-thread
#addf constant.3 servo-thread
#addf constant.2 servo-thread
#addf constant.1 servo-thread
#addf constant.0 servo-thread
#addf constant.7 servo-thread
#addf constant.8 servo-thread
#addf scale.1 servo-thread
#addf scale.2 servo-thread
#addf scale.3 servo-thread
#addf mux4.0 servo-thread
#addf mux2.0 servo-thread
#addf scale.4 servo-thread
#addf scale.0 servo-thread
#addf wcomp.5 servo-thread
#addf wcomp.4 servo-thread
#addf wcomp.0 servo-thread
#addf flipflop.1 servo-thread
#addf flipflop.0 servo-thread
#addf and2.5 servo-thread
#addf and2.6 servo-thread
#addf and2.7 servo-thread
#addf and2.8 servo-thread
#addf flipflop.2 servo-thread
#addf flipflop.3 servo-thread
#addf or2.4 servo-thread
#addf or2.8 servo-thread
#addf or2.7 servo-thread
#addf or2.6 servo-thread
#addf or2.5 servo-thread
#addf or2.3 servo-thread
#addf or2.2 servo-thread
#addf or2.1 servo-thread
#addf or2.0 servo-thread
#addf not.1 servo-thread
#addf not.2 servo-thread
#addf not.3 servo-thread
#addf not.4 servo-thread
#addf not.5 servo-thread
#addf not.6 servo-thread
#addf not.7 servo-thread
#addf not.0 servo-thread
#addf constant.9 servo-thread
#addf mux2.1 servo-thread
#addf mux2.2 servo-thread
#addf mux2.3 servo-thread
#addf mux2.4 servo-thread
#addf constant.10 servo-thread
#addf constant.11 servo-thread
#addf scale.5 servo-thread
#addf scale.6 servo-thread
#addf constant.12 servo-thread
#addf constant.13 servo-thread
####################################################
# Set parameters
####################################################
# Set constants
#setp constant.0.value +0.02
#setp constant.1.value -0.02
#setp constant.2.value 60
#setp constant.3.value 1.00
#setp constant.4.value 0.10
#setp constant.5.value 0.50
#setp constant.6.value 0.10
#setp constant.7.value +0.5
#setp constant.8.value -0.5
#setp constant.9.value 0.0
#setp constant.10.value [TRAJ]MAX_LINEAR_VELOCITY
#setp constant.11.value [TRAJ]MAX_ANGULAR_VELOCITY
#setp constant.12.value -1.0
#setp constant.13.value 0.1
####################################################
# Connect Modules with nets
#net a-button-minus input.0.btn-trigger or2.2.in0 halui.jog.3.minus
#net a-button-plus input.0.btn-thumb2 or2.2.in1 halui.jog.3.plus
#net a-buttons-active or2.2.out or2.3.in0 or2.4.in1
#net a-disable not.7.out and2.5.in1
#net a-enable flipflop.3.out not.7.in mux2.4.sel
#net a-jog wcomp.2.in input.0.abs-z-position mux2.4.in1
#net a-knob-active not.2.out or2.4.in0 and2.7.in1
#net a-knob-inactive wcomp.2.out not.2.in and2.6.in1
#net a-select and2.8.in0 and2.7.out
#net a-set flipflop.3.set and2.8.out
#net angular_motion or2.4.out mux2.0.sel
#net any-buttons-active mux4.0.sel0 or2.8.out
#net az-buttons-active or2.3.out or2.8.in1
#net az-reset flipflop.2.reset and2.6.out flipflop.3.reset
#net button-crawl scale.4.out mux4.0.in3
#net button-fast scale.2.out mux4.0.in1 scale.4.in
#net jog-crawl toggle.0.out mux4.0.sel1
#net jog-speed halui.jog-speed mux4.0.out
#net knob-crawl mux4.0.in2 scale.3.out
#net knob-fast mux4.0.in0 scale.1.out scale.3.in
#net n_1 constant.10.out mux2.0.in0
#net n_2 and2.0.in0 input.0.btn-top2
#net n_3 and2.0.in1 input.0.btn-base
#net n_4 and2.0.out halui.abort
#net n_5 halui.mode.manual input.0.btn-base3
#net n_6 wcomp.0.max wcomp.1.max wcomp.2.max wcomp.3.max constant.0.out
#net n_7 halui.program.resume input.0.btn-base4
#net n_8 wcomp.0.min wcomp.1.min wcomp.2.min wcomp.3.min constant.1.out
#net n_9 mux2.0.in1 constant.11.out
#net n_10 constant.12.out scale.5.gain scale.6.gain
#net n_11 input.0.btn-base5 or2.0.in0
#net n_12 input.0.btn-base6 or2.0.in1
#net n_13 constant.9.out mux2.1.in0 mux2.2.in0 mux2.3.in0 mux2.4.in0
#net n_14 mux2.1.out halui.jog.0.analog
#net n_15 toggle.0.in or2.0.out
#net n_16 constant.2.out scale.0.gain
#net n_17 constant.5.out scale.1.gain
#net n_18 constant.3.out scale.2.gain
#net n_19 constant.4.out scale.3.gain
#net n_20 scale.4.gain constant.6.out
#net n_21 halui.jog.1.analog mux2.2.out
#net n_22 mux2.2.in1 scale.5.out
#net n_23 scale.6.out mux2.3.in1
#net n_24 constant.13.out halui.jog-deadband
#net n_25 wcomp.4.max constant.7.out wcomp.5.max
#net n_26 constant.8.out wcomp.4.min wcomp.5.min
#net n_27 mux2.3.out halui.jog.2.analog
#net n_28 halui.jog.3.analog mux2.4.out
#net vel-per-minute scale.0.out scale.1.in scale.2.in
#net vel-per-second mux2.0.out scale.0.in
#net x-buttons-active or2.7.in0 or2.5.out
#net x-disable not.4.out and2.4.in1
#net x-enable not.4.in flipflop.0.out mux2.1.sel
#net x-hat-jog wcomp.4.in input.0.abs-hat0x-position
#net x-hat-minus wcomp.4.under or2.5.in1 halui.jog.0.minus
#net x-hat-plus or2.5.in0 wcomp.4.over halui.jog.0.plus
#net x-jog wcomp.0.in input.0.abs-x-position mux2.1.in1
#net x-knob-active not.0.out and2.1.in0
#net x-knob-inactive wcomp.0.out not.0.in and2.2.in0 and2.3.in0
#net x-set and2.1.out flipflop.0.set
#net xy-buttons-active or2.7.out or2.8.in0
#net xy-reset flipflop.0.reset and2.2.out flipflop.1.reset
#net y-buttons-active or2.6.out or2.7.in1
#net y-disable not.5.out and2.1.in1
#net y-enable flipflop.1.out not.5.in mux2.2.sel
#net y-hat-jog input.0.abs-hat0y-position wcomp.5.in
#net y-hat-minus wcomp.5.under or2.6.in1 halui.jog.1.plus
#net y-hat-plus or2.6.in0 wcomp.5.over halui.jog.1.minus
#net y-jog wcomp.1.in input.0.abs-y-position scale.5.in
#net y-knob-active not.1.out and2.3.in1
#net y-knob-inactive not.1.in wcomp.1.out and2.2.in1
#net y-select and2.4.in0 and2.3.out
#net y-set flipflop.1.set and2.4.out
#net z-button-minus input.0.btn-thumb or2.1.in0 halui.jog.2.minus
#net z-button-plus input.0.btn-top or2.1.in1 halui.jog.2.plus
#net z-buttons-active or2.1.out or2.3.in1
#net z-disable not.6.out and2.8.in1
#net z-enable not.6.in flipflop.2.out mux2.3.sel
#net z-jog wcomp.3.in input.0.abs-rz-position scale.6.in
#net z-knob-active not.3.out and2.5.in0
#net z-knob-inactive not.3.in wcomp.3.out and2.7.in0 and2.6.in0
#net z-set and2.5.out flipflop.2.set