Skip to content

Commit d5c3cd9

Browse files
committed
fixed some hal issues with sim_cannon to work with both sims name /count
1 parent 3d921c2 commit d5c3cd9

File tree

11 files changed

+25
-56
lines changed

11 files changed

+25
-56
lines changed

config/atc_sim/sim_cannon.hal

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
loadrt pwmgen output_type=0
2-
addf scale.servo servo-thread
2+
addf scale.1 servo-thread
33

44
addf pwmgen.update servo-thread
55
addf pwmgen.make-pulses servo-thread
66

77
setp pwmgen.0.enable 1
8-
setp pwmgen.0.pwm-freq 333
8+
setp pwmgen.0.pwm-freq 50
99

10-
setp scale.servo.gain 0.0037
11-
setp scale.servo.offset 0.333
10+
setp scale.1.gain 0.00059
11+
setp scale.1.offset 0.05
1212

1313
#CONNECTIONS
14-
net scale-sig motion.analog-out-20 => scale.servo.in #input degrees
15-
net scale-pwm scale.servo.out => pwmgen.0.value
14+
net scale-sig motion.analog-out-20 => scale.1.in
15+
net scale-pwm scale.1.out => pwmgen.0.value

config/atc_sim/sim_vmc.hal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ net bit4 bitslice.0.out-04
8585
loadrt conv_s32_float count=2
8686
loadrt conv_float_s32 count=3
8787
loadrt near count=3
88-
loadrt scale
88+
loadrt scale count=2
8989
addf conv-s32-float.0 servo-thread
9090
addf conv-float-s32.0 servo-thread
9191
addf conv-s32-float.1 servo-thread

config/atc_sim/sim_vmc_inch.hal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ net bit4 bitslice.0.out-04
102102
loadrt conv_s32_float count=2
103103
loadrt conv_float_s32 count=3
104104
loadrt near count=3
105-
loadrt scale
105+
loadrt scale count=2
106106
addf conv-s32-float.0 servo-thread
107107
addf conv-float-s32.0 servo-thread
108108
addf conv-s32-float.1 servo-thread

config/atc_sim/time.hal

Lines changed: 0 additions & 11 deletions
This file was deleted.

config/atc_sim/vmc.var

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
5218 0.000000
4242
5219 0.000000
4343
5220 1.000000
44-
5221 2.000000
45-
5222 3.000000
46-
5223 -4.000000
44+
5221 0.000000
45+
5222 0.000000
46+
5223 0.000000
4747
5224 0.000000
4848
5225 0.000000
4949
5226 0.000000

config/atc_sim/vmc.var.bak

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
5167 0.000000
88
5168 0.000000
99
5169 0.000000
10-
<<<<<<< HEAD
11-
5170 1.000000
12-
=======
1310
5170 2.000000
14-
>>>>>>> programmable_coolant
1511
5171 1.000000
1612
5181 0.000000
1713
5182 0.000000
@@ -22,17 +18,10 @@
2218
5187 0.000000
2319
5188 0.000000
2420
5189 0.000000
25-
<<<<<<< HEAD
26-
5190 0.000000
27-
5191 0.000000
28-
5192 21.000000
29-
5193 23.000000
30-
=======
3121
5190 2.000000
3222
5191 0.000000
3323
5192 26.000000
3424
5193 0.000000
35-
>>>>>>> programmable_coolant
3625
5194 0.000000
3726
5195 0.000000
3827
5196 0.000000
@@ -52,27 +41,20 @@
5241
5218 0.000000
5342
5219 0.000000
5443
5220 1.000000
55-
5221 2.000000
56-
5222 3.000000
57-
5223 -4.000000
44+
5221 0.000000
45+
5222 0.000000
46+
5223 0.000000
5847
5224 0.000000
5948
5225 0.000000
6049
5226 0.000000
6150
5227 0.000000
6251
5228 0.000000
6352
5229 0.000000
6453
5230 0.000000
65-
<<<<<<< HEAD
66-
5231 7.000000
67-
5241 3.000000
68-
5242 2.000000
69-
5243 -2.500000
70-
=======
7154
5231 9.000000
7255
5241 0.000000
7356
5242 0.000000
7457
5243 0.000000
75-
>>>>>>> programmable_coolant
7658
5244 0.000000
7759
5245 0.000000
7860
5246 0.000000

config/atc_sim/vmc_index_inch.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ HALFILE = vmc.hal
8484
HALFILE = sim_vmc_inch.hal
8585
HALFILE = spindle.hal
8686
HALFILE = toolchange_index.hal
87-
HALFILE = time.hal
8887
HALFILE = sim_cannon.hal
8988

9089
[TRAJ]

config/atc_sim/vmc_index_metric.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ HALFILE = vmc.hal
8484
HALFILE = sim_vmc.hal
8585
HALFILE = spindle.hal
8686
HALFILE = toolchange_index.hal
87-
HALFILE = time.hal
8887
HALFILE = sim_cannon.hal
8988

9089
[TRAJ]
-560 Bytes
Binary file not shown.

docs/source/quick_start.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Now linuxcnc needs to be started for the first time for it to create its directo
6767
Cick the link below to download the ProbeBasicInstaller file. Once downloaded, find in its destination folder and right click and selecxt properties. Select the Permissions Tab in the window that appears and check the box for "Allow this file to run as a program", see images below for reference. now double click the installer icon to begin the installation. Follow the installer instructions to install Probe Basic. Select all of the available items during initial installation. after installation probe basic should show up in the linuxcnc launch screen and you can select to create a desktop icon for it by selecting the check box to do so at the bottom of the page.
6868

6969

70-
https://github.com/kcjengr/probe_basic/releases/download/v0.2.7/ProbeBasic-Installer-v0.2.7
70+
https://github.com/kcjengr/probe_basic/releases/download/v0.2.8/ProbeBasic-Installer-v0.2.8
7171

7272

7373

0 commit comments

Comments
 (0)